Open report at 100% zoom - how?

R

Rob

When I have a command button open a report, the type is too small to read.
I want to skip the users having to click on the report to zoom it by opening
it already at 100%.

How do I do that in the code?
I have:

stDocName = "rpt2yrComparison"
DoCmd.OpenReport stDocName, acPreview


Is there something I can add to the end where the helper says I can put:
wherecondition or windowmode?

Thanks in advance,
Rob
 
D

Dirk Goldgar

Rob said:
When I have a command button open a report, the type is too small to
read. I want to skip the users having to click on the report to zoom
it by opening it already at 100%.

How do I do that in the code?
I have:

stDocName = "rpt2yrComparison"
DoCmd.OpenReport stDocName, acPreview


Is there something I can add to the end where the helper says I can
put: wherecondition or windowmode?

Add another line of code immediately after that:

DoCmd.OpenReport stDocName, acPreview
RunCommand acCmdZoom100
 

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