PC Review


Reply
Thread Tools Rate Thread

Got Focus and Activate events not working

 
 
MAJICMnt
Guest
Posts: n/a
 
      11th Dec 2007
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?
 
Reply With Quote
 
 
 
 
Klatuu
Guest
Posts: n/a
 
      11th Dec 2007
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.
--
Dave Hargis, Microsoft Access MVP


"MAJICMnt" wrote:

> 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?

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      11th Dec 2007
"MAJICMnt" <(E-Mail Removed)> wrote in message
news:1136C43A-B9C2-47A8-A36E-(E-Mail Removed)...
>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.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Reply With Quote
 
Linq Adams via AccessMonster.com
Guest
Posts: n/a
 
      12th Dec 2007
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
http://www.accessmonster.com/Uwe/For...forms/200712/1

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Requery at Got Focus or Activate? JHC Microsoft Access 0 28th Nov 2007 09:24 PM
Do Got Focus and Lost Focus DO anything? BruceM Microsoft Access Form Coding 3 15th Mar 2007 04:03 PM
I got it i got it i got ride of the stupid about:blank web page and the aifind! Ryan Windows XP Internet Explorer 0 3rd May 2004 05:04 PM
Pop Up form activate or got focus event Iouri Microsoft Access Form Coding 1 23rd Jan 2004 04:01 AM
Diff. between On Activate and On Got Focus GaryS Microsoft Access Forms 2 25th Sep 2003 09:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.