Try something like this to get you started, this method will move the recordset to the entered memberid, if it doesn't exist then it will tell you:
This assumes that you named your data connection Data1 and the fld name being searched is named memberid
With Data1.Recordset
varBookmark = .Bookmark
.Index = "memberid"
.Seek "=", Text1.Text
If .NoMatch Then
.Bookmark = varBookmark
End If
End With
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook.
if thats confusing then use this:
sql="select from table where memberid='"+text1.text+"'"
recordset.open sql,connection
if recordset.eof and recordset.bof then
msgbox "Id not found."
else
'do code here for the id.
end if Known is handfull, Unknown is worldfull
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.