• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 478
  • Last Modified:

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?
0
lrbrister
Asked:
lrbrister
  • 4
  • 3
1 Solution
 
Jeffrey CoachmanMIS 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
 
lrbristerAuthor 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
lrbristerAuthor Commented:
Thanks
0
 
Jeffrey CoachmanMIS LiasonCommented:
Just to be clear, what was the solution here?
0
 
lrbristerAuthor 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now