gedwardnelson
asked on
Findrecord message if no record found
I am using the findrecord function and I need to have a message popup if the record isn't found.
The code I am using is:
DoCmd.GoToControl "ID"
DoCmd.FindRecord Me!txtRecord, , True, , True
The code I am using is:
DoCmd.GoToControl "ID"
DoCmd.FindRecord Me!txtRecord, , True, , True
ASKER
Hi Capricorn1
Yes it's a bound form. Me!txtrecord is an unbound text box where the record number is entered from the keyboard.
ID is an autonumber field of the bound form.
If the specific record number doesn't exist (it's been deleted for example, or the record number being looked for is greater than exists) a message box will appear notifying the user the record doesn't exist.
Thanks,
George
Yes it's a bound form. Me!txtrecord is an unbound text box where the record number is entered from the keyboard.
ID is an autonumber field of the bound form.
If the specific record number doesn't exist (it's been deleted for example, or the record number being looked for is greater than exists) a message box will appear notifying the user the record doesn't exist.
Thanks,
George
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks again Cap. Worked perfectly!
George
George
what does Me!txtRecord contain? is this an input from the keyboard?