Solved

MsgBox Timeout - revisited...

Posted on 2007-03-30
3
257 Views
Last Modified: 2012-05-05
I found on ee an interesting way of setting a msgbox to time out but need just a little more help.
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_21506364.html?sfQueryTermInfo=1+function+msgbox

So....I would need to create a msgbox named myExitMessage? Where would the Function Call be fired?

*****************
Create a form with this code on the OnTimer event:

myTime = myTime + 1
myExitMessage

On the OnOpen event, have this:

myTime = 1

In teh declarations (after option explicit at the top of teh form module) have this:

Private myTime as Long

Then add this function

Function myExitMessage()
If myTime >= 60000  then     '1 minute
'close form code
End if
End Function
0
Comment
Question by:zubin6220
3 Comments
 
LVL 14

Expert Comment

by:Glenn_Moore
ID: 18823079
Set myTime as double.
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 18823388
How about this...

Dim objShell=CreateObject("Wscript.Shell")
objShell.Popup "This message will disappear in 5 seconds", 5
0
 

Author Comment

by:zubin6220
ID: 18824431
thanks, but I just wanted to use the msgbox with the timer but don,t know how or where to call it?
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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

919 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

20 Experts available now in Live!

Get 1:1 Help Now