Forms Positioning

  • Thread starter Thread starter Evan McCutchen
  • Start date Start date
E

Evan McCutchen

Hello, How can I position a form when it opens? i.e. i need one to open in
the top left, and the other in the bottom right. Any help would be
appreciated! Thanks,

E. McCutchen
evan AT radiologyonesource DOT com
 
Hello, How can I position a form when it opens? i.e. i need one to open in
the top left, and the other in the bottom right. Any help would be
appreciated! Thanks,

E. McCutchen
evan AT radiologyonesource DOT com

Code one form's Load event:

DoCmd.MoveSize 0, 0

Code the other form's Load event:

DoCmd.MoveSize 6*1440, 5*1440

The first form will open at the top left corner, the second 6 inches
from the left and 5 inches down from the top. Adjust as needed.
Note: All measurements are in Twips (1440 per inch).
 
Try this:

In the forms' properties, on the format tab, turn off autocenter. Then (in
design view) size and place the form where you want it and click the 'save'
button. The form should open in the proper place each time.
 
Thanks guys! Happy Holidays!

fredg said:
Code one form's Load event:

DoCmd.MoveSize 0, 0

Code the other form's Load event:

DoCmd.MoveSize 6*1440, 5*1440

The first form will open at the top left corner, the second 6 inches
from the left and 5 inches down from the top. Adjust as needed.
Note: All measurements are in Twips (1440 per inch).
 
Back
Top