MS Access 2003 Subform event

I have a main form (datsheet view) and a subform(also dataseheet view)

Lets say I expand the main form and then expand the subform

When I now click OFF of the subform by clicking in the main form...what event is that?

Form unload?
Lost Focus?
Larry Bristersr. DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jeffrey CoachmanConnect With a Mentor MIS LiasonCommented:
Please clarify what is mean by "expand" the forms?

There may be a few events that may actually fire in this case (not just one):
(No in any particular order)
BeforeInsert
AfterInsert
BeforeUpdate
AfterUpdate
Unload
LostFocus
OnExit
OnError
...etc

...and depending on what happened while the form was opened, the order may change

To be sure, put a messagebox on all the form events to see which ones trigger for your specific environment, and each user scenario.

As always, specifying the need for this, and your ultimate goal here, ...is always a big help in getting you the most fitting solution.

;-)

JeffCoachman
0
 
Larry Bristersr. DeveloperAuthor Commented:
JeffCoachman

I'll take a look at that from home tonight.

Believe it or not...they cut us some slack and the programmers can leave an hour early today!
0
 
Jeffrey CoachmanMIS LiasonCommented:
<they cut us some slack and the programmers can leave an hour early today>
I'm in NY and I have to stay 15 more minutes till 5PM...
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Larry Bristersr. DeveloperAuthor Commented:
Thanks
0
 
Jeffrey CoachmanMIS LiasonCommented:
Just to be clear, what was the solution here?
0
 
Larry Bristersr. DeveloperAuthor Commented:
boag2000

You just gave me a clearer understanding of the process.

I placed a messagebox on every type of event and walked my way through a series of issues. (Inherited)

This database has a load of VBA that switches back on itself and I'm removing duplicate code.
0
 
Jeffrey CoachmanMIS LiasonCommented:
OK great.

Yeah, the Messagebox trick is what I use to look at all the events and when they fire, and under what circumstances.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.