Got Focus and Activate events not working

  • Thread starter Thread starter MAJICMnt
  • Start date Start date
M

MAJICMnt

I have a pop-up form that has a macro attached to the got focus and activate
events. The form, however is not calling upon those events. I added a
messagebox to the macro and it never opens. What could be a reason for this?
 
If you are talking about the form's got focus event, it will not fire if
there is any control on the form that can take the focus.

As to the Activate event, it should fire, but try moving it to the Load event.
 
MAJICMnt said:
I have a pop-up form that has a macro attached to the got focus and
activate
events. The form, however is not calling upon those events. I added a
messagebox to the macro and it never opens. What could be a reason for
this?


I don't think the Activate event fires for PopUp forms. I don't see
anything in the Access 2003 help file that explicitly says that, but it does
say that the Deactivate event doesn't fire for PopUp forms.

Klatuu has already explained about the form's GotFocus/LostFocus events.
 
Experimentation shows that (in ACC2003) Dirk is correct! Also note, from Help:


"Note The Activate event doesn't occur when a form receives focus back from
a dialog box, popup, or another form"

so it only makes sense that it doesn't work the other way either.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 

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