mikevaughan023
02-16-2002, 07:01 AM
in my Access database i have a startup/welcome note form which opens automaticly when i open the database.i would like to have a button on the startup form which would do two things at once. i would like to to Close the startup Form, and open the switchboard form, all at once, using the 1 button.
does anybody know if they can help me? with some VB or anything!!
reply soon
mike
jwindon
02-16-2002, 07:11 AM
Consider using the OnTimer event of your "SPLASH FORM".
On the event put:
DoCmd.OpenForm "Switchboard"
Docmd.Close acForm,"SPLASH FORM"
You need to set the timer also. This is another property on the form properties sheet.
mikevaughan023
02-16-2002, 07:24 AM
i think ive figured it out now
DoCmd.OpenForm "FRM_SWITCHBOARD"
DoCmd.Close acForm, "FRM_STARTUP"
if i do this then it closes the startup and opens the switchboard!!
jwindon
02-16-2002, 07:28 AM
Yes that will do it. Using the OnTimer event however will do the work WITHOUT having the user needing to click anything. Just smoother to me.
Glad its worked out for you.