that's the code
Dim rs as adodb.recordset
set rs = New adodb.recordset
rs.open "MyTable", currentproject.connection, adOpenDynamic
with rs
'to test if there are any records
If Not .BOF then
'the following 2 lines are equivalend of the "FindFirst"
.MoveFirst
.Find "Field1='" & Text1 & "'"
'if the record doesn't exist, the pointer is at the end of the recordset
If Not .EOF then
my code goes here .....
Else
No Data found in the Database
End if
End If
End With
rs.Close
set rs = Nothing
Note that you have to insert the "Microsoft Active X Data Objects X.X Library"