G Guest Jun 2, 2005 #1 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
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
G Guest Jun 2, 2005 #3 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
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 Jun 2, 2005 #4 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
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