Solved

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

Posted on 2013-10-30
3
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My Do While is Not Producing Anything 15 88
Outlook 2016 VB code syntax 4 38
Want my table columns to autofit. 7 63
Ms access query change into mysql database 3 24
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.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

752 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