find records in access 2002 forms

T

TEKOR

try this to find records in access 2002 forms


FindRecord "Name", "Alex"


Private Sub FindRecord(FieldName as string, Value as string)

If Not Me.Recordset.EOF Then
Me.Recordset.MoveFirst
Do
If Recordset(FieldName) = Value Then
Exit Do
End If
Recordset.MoveNext
Loop Until Recordset.EOF
End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top