Form Position.

J

John

When I open the Form, I would like the Form to be at the
top right conner of the sceen position automaticly. How do
I write the code for this?

Any help would be very appreciated
 
F

fredg

When I open the Form, I would like the Form to be at the
top right conner of the sceen position automaticly. How do
I write the code for this?

Any help would be very appreciated

Code the form's Open event:
DoCmd.MoveSize 0,0

You may need to reposition it, so it's arguments are
MoveSize Right, Top
and the measurements are in Twips (1440 per inch).
So DoCmd.MoveSize 1*1440, 3*1440
positions the form 1 inch from the left edge and 3 inches from the
top.
 

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