Recoordination!!!!!!!!!!!!!!!!!!!

K

kennykee

How to set the position of a form in dialog form when I open it from another
form using command button ?

Thanks in advance.

Kennykee
 
K

kennykee

I tried the code already but it seems nothing changes. The pop-up dialog form
still in the default position. Any other codes should precede or after the
movesize code?

Any solutions?

Thanks in advance.

Kennykee
 
P

Philo Hamel via AccessMonster.com

Put something like this in the form that will have the command button:

Private Sub [your button name]_Click()
DoCmd.OpenForm "[your dialog form's name]", , , , , acDialog
End Sub

Put something like this in the dialog form:

Private Sub Form_Load()
DoCmd.MoveSize 1444, 2000, 3000, 3000
End Sub

Note that:
Numbers after 'MoveSize' represent
, [Down], [Width], [Hight]
Units for MoveSize are twips, 1/1440 of an inch, 1/20 of a point

Later,
Philo​
 
Top