Solved

MS Access 2003 Subform event

Posted on 2012-12-28
7
438 Views
Last Modified: 2012-12-31
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
Comment
Question by:lrbrister
  • 4
  • 3
7 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 38728208
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
 

Author Comment

by:lrbrister
ID: 38728249
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
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38728260
<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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Closing Comment

by:lrbrister
ID: 38732508
Thanks
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38732689
Just to be clear, what was the solution here?
0
 

Author Comment

by:lrbrister
ID: 38732740
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
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38732818
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now