hello everyone i need help with a search button for visual basic 6.0 however im getting a run-time error '3077' error
Private Sub search_cmd_Click()
Dim txtsid As String
txtsid = InputBox("Enter The Staff ID In Lowercase", "Staff Search")
If txtsid = "" Then Exit Sub
If MsgBox("Would You Like To Start The Search From The First Record?", vbYesNo + vbInformation, "Start The Search Location") = vbYes Then
Data1.Recordset.MoveFirst
End If
Data1.Recordset.FindNext "staffid'" & txtsid & "*'"
If Data1.Recordset.NoMatch = True Then
MsgBox "No MAtch Was Found", vbOKOnly + vbCritical, "Search Faild"
End If
End Sub
I would like the help