ds = New DataSet
da = New SqlDataAdapter("DELETE FROM RentA WHERE rent_no ='" & txtrentid.Text.Trim & "' ", sqlcon)
da.Fill(ds, "RentA")
DataGridViewrent.DataSource = ds.Tables("RentA")
Tag : .NET, Ms SQL Server 2008, VB.NET, VS 2010 (.NET 4.x)
Date :
2013-12-21 23:07:12
By :
kookiz
View :
747
Reply :
2
No. 1
Guest
Code
New SqlDataAdapter("DELETE FROM RentA WHERE rent_no = "___" and NAME = "_____"