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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top