Zoom question

  • Thread starter Thread starter Victoria
  • Start date Start date
V

Victoria

hi
I have the code shown below.

DoCmd.OpenReport strDocName, acPreview, , , acDialog
DoCmd.RunCommand acCmdZoom75

The first line works perfectly, but when I add the 2nd line I get error
2046: "The command or action 'Zoom75%' isn't available now."

The message gives no clue as to why it isn't available. Any ideas?

Thanks in advance
Victoria
 
Victoria,

Remove the acDialog from the line.

HTH

Peter Hibbs.
 

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

Similar Threads

Getting "Error: 0" when code runs 2
Button to open Reports 2
Error 2046 1
Help 1
Report VB Code 1
Runtime error 2046 1
Delete record command not available 1
Error 2046 when using "OutputTo" 3

Back
Top