Print preview zoom 100 doesn't work

L

laavista

I'm using Access 2003.

I'm trying to preview reports at 100%, but the reports are opening at "fit"
(and you need a major magnifying glass to read them!).

I have a list of reports, and when the user selects a report, the following
code is executed. Everything works--if the preview button is clicked, I get
the preview. If the preview button is not clicked, it prints. I just need
the preview report to be at 100%.

The code:
DoCmd.OpenReport Me.lstReport, IIF(Me.chkPreview.Value, acViewPreview,
acCmdZoom100)

Any suggestions would be greatly appreciated!
 
F

fredg

I'm using Access 2003.

I'm trying to preview reports at 100%, but the reports are opening at "fit"
(and you need a major magnifying glass to read them!).

I have a list of reports, and when the user selects a report, the following
code is executed. Everything works--if the preview button is clicked, I get
the preview. If the preview button is not clicked, it prints. I just need
the preview report to be at 100%.

The code:
DoCmd.OpenReport Me.lstReport, IIF(Me.chkPreview.Value, acViewPreview,
acCmdZoom100)

Any suggestions would be greatly appreciated!

The Preview Button is a check box? Or what?
If a Check Box:

DoCmd.OpenReport Me.lstReport, IIf(Me.CheckBoxName = True, acPreview,
acNormal)
If Me.CheckBoxName = True Then
DoCmd.RunCommand acCmdZoom100
End If

If "or what?" then you'll need to adapt the above code to whatever
value the Preview button returns.
 

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