how can I return a record not found message if the record is not f

R

relu

I have a simple query that looks for a record no. if given it brings the form
with the record if not than it brings back all records. I will like an error
message to be displayed
thanks
Relu
 
J

John Spencer

Sorry, I am not sure I understand what you want to do.

Do you want to look for a specific record based on some criteria?
If the record does not exist do you want to Return ALL records in the
table or do you want to generate a message that says the specific record
was not found?

Can you post the SQL of the query? (View: SQL from the menu)

Can you code in VBA?

WHERE are you using the query? In a form or as the source for a report
or directly?

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 

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