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!

form opening incorrectly

Status
Not open for further replies.

defosset

Programmer
Apr 1, 2003
48
0
0
US
i am setting up a data base and i have maximized my form to all corners of the screen when i design them but when they open in data sheet view they are not maximized and you can see the grey back ground screen, what setting do i need to change on each form so they open fully on the screen.

thanks
ND
 
Hi
How about:
Code:
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub
 
this worked but when you go to another page and come back to that page it is off center what scripting do i need to add to keep it centered.
 
Set the AutoCenter property of the form to True.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top