"FindRecord" Error Trapping

T

Tony C

Greetings

I am using the "FindRecord" method in VB for an Access
2000 Application to search certain fields. What I'm
looking for is how do I display a message box WHEN THE
SEARCH FAILS. At the moment the VB Code either finds a
record or on failure it does nothing.
 
A

Alex Dybenko

you have to do this in other way:
(pseudo code)

run .FindFirst method on form's recordsetclone
if .nomatch
msgbox "SEARCH FAILS"
else
'position record
form.bookmark=recordsetclone.bookmark

HTH
 

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