Cancelling the opening of a form?

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

Guest

I'm sure this is an easy one: I have a handler in my Form_Open that checks
for valid inputs. In the case of invalid ones, I'd like to put up an error,
and then NOT open the form.

DoCmd.Close closes the entire app, I assume because the form is not yet
open. Is there a trick to this?

Maury
 
Simply put Cancel = True in the form's Open event if you don't want it to
open.
 

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