Solved

MsgBox Timeout - revisited...

Posted on 2007-03-30
3
249 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

IT, Stop Being Called Into Every Meeting

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

18 Experts available now in Live!

Get 1:1 Help Now