Locking zoom % on Report Preview

JohnD

Registered User.
Local time
Today, 06:18
Joined
Oct 4, 2005
Messages
98
Every time a report is opened, it displays the page at 100% - thus allowing you to view a small portion of the document.

Is there a way to lock the zoom at 75% to view the overall page upon opening the report?

Thanks,

John D
 
Searching the forum is a great way to discover and learn the answers to your Access programming questions. This might do what you want...
Code:
       DoCmd.OpenReport "YourReport", acViewPreview
       DoCmd.Maximize
       'DoCmd.RunCommand acCmdPreviewOnePage 'full page
       DoCmd.RunCommand acCmdZoom75 '75%
 
Perfect, I made only a small change that worked out great

Code:
Private Sub cmdOpenReport_Click()
    If Me.Filter = "" Then
        msgbox "This preview is record specific, apply a filter before proceeding"
    Else
        DoCmd.OpenReport "Newptd", A_PREVIEW, , Me.Filter
        DoCmd.RunCommand acCmdFitToWindow
    End If
End Sub

.....and yes, I found it on search after you mentioned it :o

John D
 

Users who are viewing this thread

Back
Top Bottom