hi! in my program i'm using the find and bookmark function of the adodc control. as the people want me to use a normal data control, when i tried to run it using the same commands i've got an error. is there any other way to do this function through a data control? i'll post on what i've got but i it seems no to work. can anyone help me pls..
Code:
Dim counter As Integer counter = 0 adoEmployee.Recordset.MoveFirst Do While adoEmployee.Recordset.EOF MsgBox (adoEmployee.Recordset.Fields(0).Value) If txtInputID.Text = adoEmployee.Recordset.Fields("EmployeeID").Value Then counter = 1 End If adoEmployee.Recordset.MoveNext Loop If counter = 0 Then MsgBox "Employee ID does not exist", vbInformation, "Find Failure" txtInputID.Text = "" txtInputID.SetFocus adoEmployee.Recordset.MoveFirst Exit Sub End If
Comment