[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Make a label appear for only a few seconds

Posted on 2012-09-01
Medium Priority
Last Modified: 2012-09-01
Is there a way to make a label appear for only a few seconds.
If so anyone's help on this would be greatly appreciated
Question by:jleval
LVL 77

Expert Comment

ID: 38356716
To make a label on a form disappear after say 5 seconds, set the form TimerInterval property to 5000 and in the Form Timer event procedure do..

Me.yourlabelname.visible = false
me.timerinterval = 0 ' switch off timer
LVL 58

Accepted Solution

Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 38356995
or use a routine like the one below.  Paste it into a module, then do:

Me.<myLabelcontrol>.Visible = True
Me.<myLabelcontrol>.Visible = False

If you're looking to have a generic message box, see the attached DB.


Public Function Wait(intSeconds As Integer) As Integer

        Dim datCurDateTime As Date
10      datCurDateTime = Now

20      Do Until DateDiff("s", datCurDateTime, Now) > intSeconds
30        DoEvents
40      Loop

End Function
LVL 31

Expert Comment

ID: 38357183
"Is there a way to make a label appear for only a few seconds. "

First check above comments if any answer your question.

If not resolved then:

You did not clearly specify when to start counting  the few seconds?
How you do make it visible in the first place?
Any chance to make it visible again in the same session?

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

868 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