Form display position

J

John

Hi

I have a small pop non-dialog form that I need to appear towards the right
side of the screen. Is there a way to achieve this?

Regards
 
A

Arvin Meyer

John said:
Hi

I have a small pop non-dialog form that I need to appear towards the right
side of the screen. Is there a way to achieve this?

You can use the MoveSize method:

DoCmd.MoveSize
[, down][, width][, height]

Leave the comma in front of arguments you leave empty. The measurement is in
Twips. There are 1440 twips to the inch.

Your code might read something like:

Sub Form_Open(Cancel As Integer)
DoCmd.MoveSize 11500, 2000
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
Top