Solved

Which form event to use to display a warning as soon as the form is displayed

Posted on 2013-10-30
3
338 Views
Last Modified: 2013-10-30
I think that the title probably asks the question.  I have a button that opens a form.  I want a run a check and display a MsgBox when the form displays.
I have the warning code working fine, but I have tried Load and Current for the events , but the warning displays before the form is presented.

Which event should I use?

I tried using the GotFocus event of the first field, but that displays before the form displays as well.

I'm sure this will be a quick answer for someone.

Regards

Richard
0
Comment
Question by:rltomalin
3 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 39611323
You might try the Timer event, set the timer interval to 250

Then as the first line of the Timer Event set the timer interval back to 0 (which turns it off).

Then put your code that displays your messagebox below that.
0
 

Author Comment

by:rltomalin
ID: 39611398
Hi fyed
Sorry - forgot to add the comments when closing.
This did the job, thanks very much.

Regards

Richard
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39611410
Yes the "On Appear" event is an often wished for event.
;-)

Another approach would be to display this info on the form itself (in a textbox or label)
...then use a timer as fyed mentioned to turn it off

JeffCoachman
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

17 Experts available now in Live!

Get 1:1 Help Now