Prev: Mail Merge
Next: Opening document with specified font
From: Victoria on 7 Apr 2010 07:11 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
From: Peter Hibbs on 7 Apr 2010 08:24 Victoria, Remove the acDialog from the line. HTH Peter Hibbs. On Wed, 7 Apr 2010 04:11:02 -0700, Victoria <Victoria(a)discussions.microsoft.com> wrote: >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 > > >
|
Pages: 1 Prev: Mail Merge Next: Opening document with specified font |