On the "on open" event for a report I have tried a macro using "run command"
with the "zoom75%" option but I still get the message "the command or action
'zoom75%' isn't available now".
It then says "Use only those commands and macro actions that are currently
available for this database".
On the "on open" event for a report I have tried a macro using "run
command" with the "zoom75%" option but I still get the message "the
command or action 'zoom75%' isn't available now".
It then says "Use only those commands and macro actions that are
currently available for this database".
For some reason commands that change the report's window size and/or the
zoom level cannot be called in the Open event of the report itself. You
have to add them to the code that opens the report...
As Rick Brandt wrote...
For some reason commands that change the report's window size and/or the
zoom level cannot be called in the Open event of the report itself.
***You have to add them to the code that opens the report...***
That code must be in the form/button code that "calls" the report... not in the Report
itself.
Private Sub cmdOpenMyReport_Click()
DoCmd.OpenReport "Chart - Administration", acViewPreview
DoCmd.RunCommand acCmdZoom75
End Sub
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.