Solved

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

Posted on 2013-10-30
3
346 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 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