Solved

MsgBox Timeout - revisited...

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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 …

734 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