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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force a Form to open in Full Screen

Status
Not open for further replies.

WantoN

ISP
Jul 4, 2005
22
0
0
GB
As title really,
I have a form called Contact Lookup, and I'd like it to oen on startup in fullscreen view, I'd also like to set the title to a different caption, and disallow user access to any other form functions.

Cheers guys,
Antoni
 
[tt]docmd.maximize
me.caption = "some other caption"[/tt]

in the form open event, though caption is perhaps easier set in the properties dialogue.

"disallow user access to any other form functions." - oh dear, you're sure you really need opening it ;-)

See if turning some of the properties in the data tab of the form suffices (AllowAdditions, AllowEdits, AllowDeletions...)

Roy-Vidar
 
Code:
Private Sub Form_Open(Cancel As Integer)
    DoCmd.Maximize
    Me.Caption = "My New Caption"
End Sub
However if you set
Modal=Yes
PopUp=Yes
BorderStyle=Dialog
then it will open to the full screen something like screen lock. Prior to check this you need to put a close button on the form to save yourself from the trap.

________________________________________________________________________
Zameer Abdulla
Visit Me
No two children are alike - particularly if one is yours and the other isn't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top