Results 1 to 4 of 4
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316

    Prompt for Printer When Report Opens

    How do I tell the Report to prompt for a printer instead of automatically going to the default printer?



    Thanks, Eddie

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Open the report in PrintPreview and code opens printer dialog.
    Bing: Access report printer dialog
    http://answers.microsoft.com/en-us/o...e-4a95438c1104
    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
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    I found it... instead of using a Docmd.OpenReport... instead, use...

    DoCmd.SelectObject acReport, "rpt_Name", True ' True means open from Navigation pane

    On Error GoTo ClickPrintCancel
    DoCmd.RunCommand acCmdPrint

    Exit Sub

    ClickPrintCancel:

    MsgBox "Print Request Cancelled", vbOKOnly, "Print Cancelled"

    End Sub

    Hope this helps someone... Eddie

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Interesting, never used that. Probably because doesn't allow sending filter criteria to the report.

    Glad you found solution and shared it.
    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. Replies: 3
    Last Post: 09-18-2013, 04:03 PM
  2. Replies: 0
    Last Post: 01-09-2013, 10:52 AM
  3. Replies: 15
    Last Post: 09-06-2012, 06:25 PM
  4. Access 2003 Report - Printer Settings
    By jre1229 in forum Access
    Replies: 5
    Last Post: 01-31-2012, 06:03 PM
  5. Setting Printer when Printing Report
    By russ0670 in forum Reports
    Replies: 3
    Last Post: 05-12-2010, 09:45 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