how to set up an error message if criteria is false in a query ?

Hapr1

Registered User.
Local time
Today, 06:08
Joined
Aug 4, 2005
Messages
24
How to display an error message if the specified criteria is false in a query ?
what function should be used for that ?
I have a query which has to check 3 conditions and if the 3 conditions are true then it should display an error message .
What should be done for that?

Thanks for your help in advance
 
Queries don't interact with the user except to prompt for parameters. If you are using the query as the RecordSource for a report, you can use the NoData event to display a message. Forms don't have a NoData event but you can determine if the recordset is empty by checking the recordCount in the form's Load event.
 

Users who are viewing this thread

Back
Top Bottom