I would like to know do you make to find a record in VB. I'm able to make next, previous...and now i want to make the find...if you are able to make that, well help me please!
myRS.Open "SELECT * From myTable", myConn, adOpenStatic, adLockPessimistic
myRS.Requery
Dim Question as String
Question = Inputbox("Give a name",vbQuestion+vbOKOnly)
With MyRS
.MoveFirst
.Find "Name='" & Question & "'"
If .EOF Then
MsgBox "Name " & Question & " not found.", vbOKOnly + vbExclamation
Else
MsgBox "Record found"
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.