Im using this piece of code to hide the switchboard while a login form appears on startup. The Switchboard still appears maximized in the background. I dont know that is happening when I have asked for the form to be hidden.
'// function to shape form to bitmap
fInitFormShape Me, "AirLock.bmp", RGB(255, 0, 255)
'// show system user name
Me.txtLogInName = fSystemUserName
'// show system pc name/id
Me.txtPCName = fComputerName
Me![txtPassword].SetFocus
On Error GoTo ErrorHandler
'The switchboard form is opened but hidden in the open event of the login form.
DoCmd.OpenForm "Switchboard", acNormal, , , , acHidden
'// function to shape form to bitmap
fInitFormShape Me, "AirLock.bmp", RGB(255, 0, 255)
'// show system user name
Me.txtLogInName = fSystemUserName
'// show system pc name/id
Me.txtPCName = fComputerName
Me![txtPassword].SetFocus
On Error GoTo ErrorHandler
'The switchboard form is opened but hidden in the open event of the login form.
DoCmd.OpenForm "Switchboard", acNormal, , , , acHidden