Fixing popup positions

B

bazilthebest

Is there a simple way to fix the position of a popup on an access 2007 form.
With the main form in design view and the popup moved to its position it
stays for a few appearances then moves to the top left of the screen. How
can its position be fixed?
 
F

fredg

Is there a simple way to fix the position of a popup on an access 2007 form.
With the main form in design view and the popup moved to its position it
stays for a few appearances then moves to the top left of the screen. How
can its position be fixed?

You can use the MoveSize method in the form's Load event to set the
left and top position of the form.

Note: All measurements must be in Twips, 1440 per inch, so to set the
form 1 inch from the left of the screen and 2 inches down from the top
you would use:

DoCmd.MoveSize 1*1440,2*1440

Set the form's AutoCenter property to No.
 
B

bazilthebest

Perfect - thanks

malcolm

fredg said:
You can use the MoveSize method in the form's Load event to set the
left and top position of the form.

Note: All measurements must be in Twips, 1440 per inch, so to set the
form 1 inch from the left of the screen and 2 inches down from the top
you would use:

DoCmd.MoveSize 1*1440,2*1440

Set the form's AutoCenter property to No.
 

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

Top