Reposition a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form opening another form when I click a button. I need to
reposition the new form when it opens. Can anyone help with this. Depending
on which button is clicked depends where the new form gets positioned.
 
I have a form opening another form when I click a button. I need to
reposition the new form when it opens. Can anyone help with this. Depending
on which button is clicked depends where the new form gets positioned.

Look up the MoveSize method in VBA help.

DoCmd.MoveSize 2 * 1440, 4 * 1440

will position a form 2 inches from the left screen, and 4 inches down
from the top screen.

Note: all measurements are in Twips, 1440 per inch.
 
Thanks. Works great.

fredg said:
Look up the MoveSize method in VBA help.

DoCmd.MoveSize 2 * 1440, 4 * 1440

will position a form 2 inches from the left screen, and 4 inches down
from the top screen.

Note: all measurements are in Twips, 1440 per inch.
 
Back
Top