Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form for a 3 sec count then close it 1

Status
Not open for further replies.

splats

Technical User
Jan 2, 2003
131
Hello

I would like to have a popup form open when the startup form is opened in my access 2000 database. I would like the popup form to only stay open for 3 seconds and then close on it's own. I know how to open the popup (in the form load event of the startup form) but I am not sure on what code to use in-between the open and close codes of the popup form. Any help would be appreciated.

tia
 
maybe import sleep from the standard windows dll:

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

than you can load the popup, have it sleep for 3 seconds, then close it? I've had problems with this at times, but maybe it will work for you.

-Venkman
 
I think it would be easier to setup the form's Timer to 3000 (3 seconds ) and make the On Timer routine close the form with a regular

DoCmd.Close

This should take take of your problem.



 
Thank you! It was so easy and works great! I used the timer..

thanks again.

Tina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top