command or action zoom100% isn't available now

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Please assist.
On my report open I have the following:

DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100

Does anyone know why am I gettng an error 2046: command or action zoom100%
isn't available now?

Thanks
 
Gwen said:
Hi,

Please assist.
On my report open I have the following:

DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100

Does anyone know why am I gettng an error 2046: command or action zoom100%
isn't available now?

The why is hard to say, but it has always been that way. If you open the report
from code then the same routine that opens it can then specify the zoom level.
You just can't use it within the report module itself.
 
Hi,

Please assist.
On my report open I have the following:

DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100

Does anyone know why am I gettng an error 2046: command or action zoom100%
isn't available now?

Thanks

You placed your RunCommand code in the wrong event.
Place it in the Form event that you used to open the report:

DoCmd.OpenReport 'ReportName", acViewPreview
DoCmd.RunCommand acCmdZoom100
 
Back
Top