Open Form

A

Adrienne

I would like to open a form called frmsplash for 3 seconds
and close the form and run a macro called OpenTblCANPV.
How can I accomplish this?
 
D

Dirk Goldgar

Adrienne said:
I would like to open a form called frmsplash for 3 seconds
and close the form and run a macro called OpenTblCANPV.
How can I accomplish this?

Use the Timer event of frmSplash to close it and run the macro. Set its
TimerInterval property to 3000 (3 seconds), and have an event procedure
for the Timer event like this:

Private Sub Form_Timer()

Me.TimerInterval = 0 ' disable timer
DoCmd.Close acForm, Me.Name, acSaveNo
DoCmd.RunMacro "OpenTblCANPV"

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top