Hidding the switchboard

GetReel

Registered User.
Local time
Today, 19:33
Joined
May 22, 2003
Messages
67
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
 
How about something like:

Forms!Switchboard.Visible = False
 
Problem solved RichO

I added the hidden command on the form when I should have place it in the event button in the logon form.

Thank Richo your reply helped me think clearly.
 

Users who are viewing this thread

Back
Top Bottom