for deleting a particular record in a database i wrote the following code:
s = "Delete bankdet1 Where facode1=@facode1"
cmd = New SqlCommand(s, cn)
cmd.Parameters.Add("@facode1", TextBox16.Text)
cn.Open()
i = cmd.ExecuteNonQuery()
cn.Close()
MsgBox(i & " records deleted!")
now that particular record is being deleted.
now if i want to know the code for updating a record in the database
let me know with a small example.
thnaks
s = "Delete bankdet1 Where facode1=@facode1"
cmd = New SqlCommand(s, cn)
cmd.Parameters.Add("@facode1", TextBox16.Text)
cn.Open()
i = cmd.ExecuteNonQuery()
cn.Close()
MsgBox(i & " records deleted!")
now that particular record is being deleted.
now if i want to know the code for updating a record in the database
let me know with a small example.
thnaks