Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximize a Switchboard when user opens database 2

Status
Not open for further replies.

djmurphy58

Technical User
Feb 28, 2003
73
US
I have a switchboard that I created from Switchboard Manager - so it already has an [Event Procedure] in its OnOpen property.

I'm a novice user and I would like to know how to have the switchboard maximize automatically whenever the user opens the Database. I'm guessing I need to add "DoCmd.Maximize" somewhere. But since I don't know s**t about visual basic, I don't know how or where this statement gets added???

Can someone help??

Thank you,
Dennis
 
In the OnOpen property of the form, select the "Event Procedure". Then click the build button (ellipse) to the right of this field. In the VBA window that opens, put:

DoCmd.Maximize

save and you should be done.

****************************
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
MCSA, CNA, Net+, A+
w: rljohnso@stewart.com
h: wildmage@tampabay.rr.com
 
If you click on the ... for the OnOpen property it will open the VB Editor. You'll see code like:

Private Sub SwitchboardName_OnOpen()
...<code here>
End Sub

Between the Sub and End sub, you can put the Maximize command. Right above End Sub would work.



DreamerZ
simplesolutions@prodigy.net
[ignore][/ignore]
 
Excellent! Thank you guys! Your help is much appreciated.

Dennis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top