Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning a form from VBA 1

Status
Not open for further replies.

8441

Technical User
May 9, 2001
54
GB
Is it possible to set the starting position on the screen from with VBA code for a form.

If this is possible how can it be done?

Craig
 
You need to use the MoveSize method:

DoCmd.MoveSize
, [Down], [Width], [Height]

All measurements are entered in Twips (1440 per inch). It takes a bit if playing around to get the form position correct.

Remember that screen resolution will affect this too. An API call to get screen res. can resolve this problem.

Ed Metcalfe.​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top