MoveSize for form AND report

P

PeterM

I have a report which is opened from a menu from.

DoCmd.OpenReport "Pain_Diary_Detail", acViewPreview, , , acWindowNormal

That report opens a menu form using:

DoCmd.Restore
DoCmd.MoveSize 300, 1750
DoCmd.OpenForm "ManageReports", acNormal, , , acReadOnly, acWindowNormal,
"Pain_Diary_Detail"
DoCmd.SelectObject acForm, "ManageReports"
DoCmd.MoveSize 7000, 700

What I'm trying to do is to open the report, do a movesize as above, then
open the form "ManageReports" and do a movesize for the form. The movesize
for the report works great...the movesize for the form does not.

The report is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Dialog

The form is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Thin

I need to move the form out from under the report so the users can see/use
it. Does anyone see anything I'm doing wrong? What I'm looking for is the
report on the left side of the screen and the form on the right side of the
screen. Like I said the report is positioning properly. I just don't get it.

Thanks in advance for your help.
 
J

jinlan7770

PeterM said:
I have a report which is opened from a menu from.

DoCmd.OpenReport "Pain_Diary_Detail", acViewPreview, , , acWindowNormal

That report opens a menu form using:

DoCmd.Restore
DoCmd.MoveSize 300, 1750
DoCmd.OpenForm "ManageReports", acNormal, , , acReadOnly, acWindowNormal,
"Pain_Diary_Detail"
DoCmd.SelectObject acForm, "ManageReports"
DoCmd.MoveSize 7000, 700

What I'm trying to do is to open the report, do a movesize as above, then
open the form "ManageReports" and do a movesize for the form. The
movesize
for the report works great...the movesize for the form does not.

The report is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Dialog

The form is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Thin

I need to move the form out from under the report so the users can see/use
it. Does anyone see anything I'm doing wrong? What I'm looking for is
the
report on the left side of the screen and the form on the right side of
the
screen. Like I said the report is positioning properly. I just don't get
it.

Thanks in advance for your help.
 
Ð

Сергей ГуÑенко

PeterM said:
I have a report which is opened from a menu from.

DoCmd.OpenReport "Pain_Diary_Detail", acViewPreview, , , acWindowNormal

That report opens a menu form using:

DoCmd.Restore
DoCmd.MoveSize 300, 1750
DoCmd.OpenForm "ManageReports", acNormal, , , acReadOnly, acWindowNormal,
"Pain_Diary_Detail"
DoCmd.SelectObject acForm, "ManageReports"
DoCmd.MoveSize 7000, 700

What I'm trying to do is to open the report, do a movesize as above, then
open the form "ManageReports" and do a movesize for the form. The
movesize
for the report works great...the movesize for the form does not.

The report is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Dialog

The form is setup:
AutoResize = No
AutoCenter=No
PopUp = Yes
Modal = No
BorderStyle=Thin

I need to move the form out from under the report so the users can see/use
it. Does anyone see anything I'm doing wrong? What I'm looking for is
the
report on the left side of the screen and the form on the right side of
the
screen. Like I said the report is positioning properly. I just don't get
it.

Thanks in advance for your help.
 
J

Jerry Whittle

Try moving the MoveSize into the Open event of the form itself. That's where
I usually put MoveSize.
 

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

Top