My setup in VB6 is a DataGrid connected via an Adodc to an Access2K Table "SortClients" and the Field I'm searching for matching Record(s) is "Clients."
This is the code I'm using that gives me a run-time error msg of "Object Required":
Private Sub Command1_Click()
prompt$ = "Enter Client's Name"
SearchStr$ = InputBox(prompt$, "Search for Possible Conflicts")
SortClients.Recordset.Seek "=", SearchStr$
If SortClients.Recordset.NoMatch Then
SortClients.Recordset.MoveFirst
End If
End Sub
The line that's highlighted when I debug is:
SortClients.Recordset.Seek "=", SearchStr$
Can anyone tell me what I might ave wrong with the code?
Thanks in advance!
This is the code I'm using that gives me a run-time error msg of "Object Required":
Private Sub Command1_Click()
prompt$ = "Enter Client's Name"
SearchStr$ = InputBox(prompt$, "Search for Possible Conflicts")
SortClients.Recordset.Seek "=", SearchStr$
If SortClients.Recordset.NoMatch Then
SortClients.Recordset.MoveFirst
End If
End Sub
The line that's highlighted when I debug is:
SortClients.Recordset.Seek "=", SearchStr$
Can anyone tell me what I might ave wrong with the code?
Thanks in advance!