Results 1 to 4 of 4
  1. #1
    ellenl5974 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Posts
    2

    Print Preview Hangs

    I have created a bunch of reports in Access. When I click on the little print preview button on the lower right-hand side, the preview displays quickly. However, if I insert a button with the following as the code:

    Private Sub cbPrint_Click()


    DoCmd.RunCommand acCmdPrintPreview


    End Sub



    ... then the preview pops up, but Access seems to hang for about 3 minutes before I am able to do anything else. Is this the wrong code to use?

    Thanks,
    Ellen

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    The report is already open in ReportView and you want to use code on form to switch to PrintPreview. I've never done this. I just don't have reports open to ReportView, always PrintPreview or straight to printer. I use forms for on-screen presentation of data.

    Review: http://www.accessruncommand.com/codeex/54.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ellenl5974 is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    May 2012
    Posts
    2
    Thanks for the reply! I am using a reportview because I want to user to be able to filter and sort on the fly. Still not sure why it hangs. Anyone else?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You want user to be able to filter and sort report after it opens? Never set that up.

    The link shows code to set focus back to the report. Maybe that will make a difference.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Preview print on form ???
    By rfhall50 in forum Forms
    Replies: 0
    Last Post: 03-28-2011, 10:16 AM
  2. print preview
    By rmohebian in forum Access
    Replies: 4
    Last Post: 02-14-2011, 08:10 AM
  3. Print Preview for Forms
    By DianeG in forum Forms
    Replies: 1
    Last Post: 02-03-2011, 09:33 PM
  4. Print Preview different from Print Hardcopy
    By peterc in forum Reports
    Replies: 4
    Last Post: 10-27-2009, 05:35 AM
  5. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 AM

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