placement of forms

matt330

Registered User.
Local time
Today, 15:11
Joined
Jul 20, 2004
Messages
31
is there anyway to specify where on the screen a form will pop up when you click the command button?
 
In the form that's loading, build an event (code event)

on the _Load event put this code:

Me.Top = 200
Me.Left = 200

now the form *should* start 200 pixels from the top and 200 pixels from the left *HOWEVER* this MAY be relative to the MS Access window, i have not tested this.. Give it a try.
 
Thanks for the info...i'm kind of VB ignorant...

Private Sub Form_Load()
Me.Top = 200
Me.Left = 200
End Sub


What am i missing? I think it has a problem with the "Top", as it wasn't an option in the drop down after typing "Me."
 
Last edited:
Try this instead...
Code:
'DoCmd.MoveSize [right], [down], [width], [height]
DoCmd.MoveSize 200, 200
You can also resize the form using the same method...
Code:
DoCmd.MoveSize 200, 200, 4000, 3000
Check the help files for the MoveSize method for more info.
 

Users who are viewing this thread

Back
Top Bottom