I know that for Data control you can use the Index and Seek function to search for records, but what do i use for the Ado control? Also, how do i set conditons? eg. User cannot go on to the next field without entering something in the previous field.
Hi,
with an adocontrol you can use the Find method
Say you have following controls on you form
ADO1 'AdoControl
Text1 'Textbox where the data is you have to look up
With ADO1.Recordset
.MoveFirst
.Find "myField='" & Text1 &"'"
If .EOF Then
MsgBox txtPostkode & " not Found."
Else
'Put your code here
End If
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.