Solved

MsgBox Timeout - revisited...

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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

632 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