Results 1 to 5 of 5
  1. #1
    MintChipMadness is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    109

    Changing Report Print Preview Zoom Options in VBA


    I set my report to open in print preview but I can't figure out how to change one of the ribbon options when the user enters. I would like the print preview to open in two pages zoom mode. Is there a way to hit an option in the ribbon on entry? Thank you for your help.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    15,333

  3. #3
    MintChipMadness is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    109
    The zoom stuff from the site doesn't work. When I change something like landscape mode and save the database the report defaults to it the next time but with the two pages it doesn't. I think the DoCmd.RunCommand acCmdPreviewTwoPages is the command but I can't seem to get it to work when a user enters print preview. I tried to get it to work in open report but it can't be done (or I can't figure it out).

  4. #4
    MintChipMadness is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    109
    I found the answer on the interweb. I listed the working code below.

    Code:
    DoCmd.OpenReport "Reportname", acViewPreview
    DoCmd.RunCommand acCmdPreviewTwoPages

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    15,333

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 02-02-2013, 12:44 AM
  2. Replies: 1
    Last Post: 04-21-2011, 01:58 PM
  3. Replies: 0
    Last Post: 07-15-2010, 12:13 PM
  4. Can't see sub report in print preview
    By LoggyDoggy in forum Access
    Replies: 1
    Last Post: 04-20-2010, 05:38 PM
  5. Replies: 1
    Last Post: 04-05-2006, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums