Open form from an empty query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If a query produces 0 entries is there a way to open a specified form

For instance if my queries searches for a client and does not find them it
will force the "enter new client" form to open?
 
No. Queries are not powerful enough to do that.

Use a form - in Datasheet view if you want it to look like a query.

You can add code the the Open event procedure to cancel this form if it has
no records, and open another instead.

(You will need some experience with VBA code to achieve that.)
 

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

Back
Top