visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: VBA (Office) :: Best Practices for Form Events


By: knechod U.S.A.  Date: 24/12/2004 01:11:30  English  Points: 20 Status: Answered
Quality : Excellent
When I instantiate a new copy of a form using the New keyword, it fires the Open, Load, Activate, and Current events immediately. This has caused a lot of workarounds in code that look terrible!

How would you characterize the types of activities that should be performed in each of these?

Thanks,

Kevin
By: VGR Date: 29/12/2004 09:31:02 English  Type : Answer
From what I read on google/microsoft, this is perfectly normal.

Open, Load and Activate are triggered in sequence as explained on http://msdn.microsoft.com/library/en-us/bapp2000/html/acbachap05.asp

The Current event has even the sequence : Open → Load → Resize → Activate → Current

On the top-right section of http://www.blueclaw-db.com/access_event_programming/index.htm, you'll probably find "Form Event Examples" that will help you understand and master the event handling in your FORM.

On "How to create an event handler?", I suggest reading this : http://www.samspublishing.com/articles/article.asp?p=21321&seqNum=3
As far as I can humbly tell, all the chapter under the statement "VBA event procedures (also known as event handlers) are subprocedures contained in class modules" is very interesting to you.

Best regards and sorry I don't have enough VBA knowledge myself to better answer your question.
By: Nono Date: 17/05/2005 16:02:56 English  Type : Comment
I think you did answer it right, buddy.
By: VGR Date: 19/05/2005 08:32:10 English  Type : Comment
time for knechod to close the Question, then ? ;-)
By: VGR Date: 21/07/2005 12:19:50 English  Type : Comment
?
By: Nono Date: 26/07/2005 12:24:01 English  Type : Comment
strange, isn't it ? May-be you should force-close this question and assign the answer to yourself (despite how much uninethical this may seem at first ;)
By: VGR Date: 26/07/2005 17:22:52 English  Type : Comment
thanks knechod ;-)
I hope we can help you again sooner or later ;-)

Do register to be able to answer

EContact
browser fav
page generated in 307.875870 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page