Close form upon clicking a comman button (1 Viewer)

TaiChi56

Registered User.
Local time
Yesterday, 23:37
Joined
Nov 4, 2004
Messages
22
Close form upon clicking a command button

I have a startup splash screen with a "OK" button, similar to Nortwind database. The OK button works as far as opening my switchboard page. But how do I get the Splash screen to close after I click the OK button? So I can see my switchboard page.
 
Last edited:

Newman

Québécois
Local time
Today, 02:37
Joined
Aug 26, 2002
Messages
766
In the VBA code of your button, add «DoCmd.Close» before the line «DoCmd.OpenForm...».
 

TaiChi56

Registered User.
Local time
Yesterday, 23:37
Joined
Nov 4, 2004
Messages
22
It worked, thank you

Newman said:
In the VBA code of your button, add «DoCmd.Close» before the line «DoCmd.OpenForm...».

Excellent. Worked perfectly.
 

Users who are viewing this thread

Top Bottom