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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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​
 

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

Similar Threads


Back
Top