Form won't open at the correct size

kirkm

Registered User.
Local time
Tomorrow, 08:43
Joined
Oct 30, 2008
Messages
1,257
Suddenly my Form opens way too small and has to be dragged (by its corner) to the correct size. At this point I try to Save it but the save doesn't seem to change anything. I've tried with the Form set both modal and non modal.


How can I fix this please? Was working perfectly for about a week, and no idea what happened.
 
Try by opening the form in design view, change something a little (so it ask for saving when you close it), then switch to form view, make it to the correct size, close it and save it, then it should open in the correct size.
Else you've some code running that change the size.
 
Or use DoCmd.MoveSize code in form load event to place the form where you want (related to top left as 0,0) and the size you want

The syntax is DoCmd.MoveSize (down,right,width,height) and the values are in pixels (1440 pixels/inch or 567 pixels/cm)

Example
Code:
 DoCmd.MoveSize 500, 200, 5000, 2000

If your app is to be used on multiple monitors of different sizes & resolutions, beware of forms ending up partly or wholly off screen for a smaller screen
 
Many thanks for replies.
JHB I finally got it. I was full screen and when closing the Form from design view, it would disappear. After switching from full screen I could then see teh Form, resize, and save it as you describe This only took me about 4 hours LOL!

Ridders I'm trying to avoid doCmd MoveSize to learn how to do it the 'other way'. Sadly its very hit and miss and much anguish. WHY don't they just have a Height & width property? There must be a good reason... I suppose!
Noted re smaller screens. I think it's centered, that bit seems to make sense.
 
WHY don't they just have a Height & width property? There must be a good reason... I suppose!
there is - width is a given, height is broken down into sections - header, footer and details
 

Users who are viewing this thread

Back
Top Bottom