masih_300
15-09-2008, 10:52
باسلام خط 4 اين كد را اشكال مي گيره با تشكر
Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnupdate.Click
Dim db As New DataBase
db.DoCommand("update tabel1 set id='" + txtid.Text + "',name='" + txtname.Text + "',adr='" + txtadress.Text + "' where name='" + Name + "' and id='" + id + "'")
Form1_Load(sender, e)
MessageBox.Show("Updated")
End Sub
Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnupdate.Click
Dim db As New DataBase
db.DoCommand("update tabel1 set id='" + txtid.Text + "',name='" + txtname.Text + "',adr='" + txtadress.Text + "' where name='" + Name + "' and id='" + id + "'")
Form1_Load(sender, e)
MessageBox.Show("Updated")
End Sub