Set Form Location on open

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

Thanks for taking the time to read my question.

I am working in Access97.

I am wondering if it is possible to set the location that
a form should go to when it opens.

I am sure it has something to do with x and y
coordinates, but I am not sure how to set them.

Thanks again,

Brad
 
I'm presuming you are talking about a pop-up form. Open the form in design view,
open properties, go to the format tab and turn off AutoCenter and AutoSize. Make
some other temporary chnge to your form such as changing a letter on a caption
on a button. Click the View button on the toolbar at the top of the screen. Grab
the title bar of your form and move the pop-up form where you want it to appear
each time it opens. Close the form with the 'X' at the top right of the form.
You MUST get the dialog asking if you want to save changes. Answer Yes. Open
your form again in design view, undo the temporary change you made and close the
form. The form should now open each time in the position where you moved and set
it.
 
Thanks for taking the time to read my question.

I am working in Access97.

I am wondering if it is possible to set the location that
a form should go to when it opens.

I am sure it has something to do with x and y
coordinates, but I am not sure how to set them.

Thanks again,

Brad

You can code the form's Open event:
DoCmd.MoveSize 4*1440,3*1440
To open the form 4 inches from the left screen edge, and 3 inches down
from the top.

All units are in Twips (1440 per inch).
 
Thanks Fred!


-----Original Message-----


You can code the form's Open event:
DoCmd.MoveSize 4*1440,3*1440
To open the form 4 inches from the left screen edge, and 3 inches down
from the top.

All units are in Twips (1440 per inch).
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
 
Back
Top