Check for design mode...

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

Guest

Hi y'all

Newbie question!!

How do I check for design mode in code in an Access form?
I need to do some cleaning up on the Close event of a form and avoid firing
the event if I switch into design mode.

Does this make sense???

All suggestions gratefully received....

Tia
 
I don't think you can. All of the form event procedures fire *before* the
form switches to design view, so any test you did in any of the form event
procedures would always return False.

You can write code to check whether another form is open in design view, but
not the form behind which your code is running. If the code is running, then
by definition the form is not in design view, as if it was in design view
the code would not be running. I'm afraid there isn't, as far as I am aware,
any indicator that would tell you the form is *about to be* in design view.
 
Thanks for your input Brendan.

I posted this after a day's headbangin....

After a night's sleep, I realized just how dumb a question it was!!!


Steve
 
There are no dumb questions ... well, OK, maybe there are, but this wasn't
one of them! :-)
 

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