G
Guest
From a command button on a form I have the following code to open a report:
DoCmd.OpenReport "rptRouteMilesByTen", acViewPreview
In the reports On Open code I want the report to zoom to 100% but I get an
error:
Private Sub Report_Open(Cancel As Integer)
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
End Sub
I get an error in the RunCommand line of the above code. What's wrong?
Thank you
DoCmd.OpenReport "rptRouteMilesByTen", acViewPreview
In the reports On Open code I want the report to zoom to 100% but I get an
error:
Private Sub Report_Open(Cancel As Integer)
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
End Sub
I get an error in the RunCommand line of the above code. What's wrong?
Thank you