I'm trying to find the first record in a database that matches a certain string so I did this:
Private Sub Find_Click()
DataCont.Recordset.FindFirst "'A Field' = 'Some Text'"
If DataCont.Recordset.NoMatch = True Then
MsgBox "No match found"
End If
End Sub
The field name is correct as is the name of the data control. The field must have a space in it (changing the field name in the database would be a massive task). It just says "No Match Found" every time I search. And the string is in the database! I'm stuck
Thanks
elziko
Private Sub Find_Click()
DataCont.Recordset.FindFirst "'A Field' = 'Some Text'"
If DataCont.Recordset.NoMatch = True Then
MsgBox "No match found"
End If
End Sub
The field name is correct as is the name of the data control. The field must have a space in it (changing the field name in the database would be a massive task). It just says "No Match Found" every time I search. And the string is in the database! I'm stuck
Thanks
elziko