Maximizing a report in 2007

  • Thread starter Thread starter wmdmurphy
  • Start date Start date
W

wmdmurphy

In my app I need reports to open maximized to avoid the user having to do
this manually. When I add docmd.maximize to either the Open or Activate
event the reports do open maximized, but there is no navigation bar at the
bottom of the report preview screen. Is there a setting to avoid this?

Bill
 
Hi Bill,
try this instead of using docmd.maximize.

In the code that opens the report put
DoCmd.OpenReport "rptName", acViewPreview
DoCmd.RunCommand acCmdZoom100

I use this and it opens the report at full size and you can see the
navigation bar.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
Hi Bill,
try this instead of using docmd.maximize.

In the code that opens the report put
DoCmd.OpenReport "rptName", acViewPreview
DoCmd.RunCommand acCmdZoom100

I use this and it opens the report at full size and you can see the
navigation bar.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
Jeanette,

That worked for me, but the report was opening in a small window in mid
screen, and I had to click on the maximize button to make it maximize. I
found the following code example at
http://www.accessruncommand.com/codeex/238to245.htm, and this caused the
report to open full screen, zoomed to 100% and with a navigation bar:

DoCmd.OpenReport "rptName", acViewPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdFitToWindow
DoCmd.RunCommand acCmdZoom100

Bill
 
Jeanette,

That worked for me, but the report was opening in a small window in mid
screen, and I had to click on the maximize button to make it maximize. I
found the following code example at
http://www.accessruncommand.com/codeex/238to245.htm, and this caused the
report to open full screen, zoomed to 100% and with a navigation bar:

DoCmd.OpenReport "rptName", acViewPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdFitToWindow
DoCmd.RunCommand acCmdZoom100

Bill
 
Funny, I tried that code a while ago and I had to remove the 2 lines for
maximize and fit to window to get the desired result.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
Funny, I tried that code a while ago and I had to remove the 2 lines for
maximize and fit to window to get the desired result.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
Back
Top