i am new for vb6.0. i am using vb6.0 and msaccess. i have written following code for add new records to database table
present i need code for delete records fom the table condition is
"If Trim(Text1.Text ) = Trim(rs.Fields( 0)) Then click delete button automatically delete that record.....
Plz urgent help me
mailid is koti_bujji1@yah oo.com
Thanks
Code:
Private Sub Command1_Click() On Error Resume Next If Trim(Text2.Text) = Trim(Text3.Text) Then rs.MoveFirst While Not rs.EOF If Trim(Text1.Text) = Trim(rs.Fields(0)) Then MsgBox "You are already exist" Text1.Text = "" Text2.Text = "" End If rs.MoveNext Wend If rs.EOF Then rs.AddNew rs!uid = Trim(Text1.Text) rs!pwd = Trim(Text2.Text) rs.Update MsgBox "New user created" End If Else MsgBox "Please correct Password" Text2.Text = "" Text3.Text = "" End If End Sub
"If Trim(Text1.Text ) = Trim(rs.Fields( 0)) Then click delete button automatically delete that record.....
Plz urgent help me
mailid is koti_bujji1@yah oo.com
Thanks
Comment