Results 1 to 4 of 4
  1. #1
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    Setting Printer when Printing Report

    I want 1 button to print about 10-20 reports on 1 click.



    I have placed VBA on the button to open each report, print then close.

    Code:
    DoCmd.OpenReport "maintenancepayments", acViewPreview, "", "", acNormal
        DoCmd.RunCommand acCmdPrint
        DoCmd.Close
    The problem I have is that each report opens the print dialogue box asking which printer to print to.

    Does anyone know a way to stop this happening and get all to print to a specific or default printer.

    I have tried setting page options on the report to select default printer but it still shows the print dialogue box.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you tried just:
    DoCmd.OpenReport "maintenancepayments"
    ...instead of:
    DoCmd.OpenReport "maintenancepayments", acViewPreview, "", "", acNormal

  3. #3
    russ0670 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    21

    Solved

    Thanks that did it.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could help.

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

Similar Threads

  1. Setting a field in order for Report
    By cotri in forum Reports
    Replies: 2
    Last Post: 01-28-2010, 02:44 PM
  2. Replies: 1
    Last Post: 01-14-2010, 04:10 PM
  3. Printing to an intermec printer from access
    By dkalsow in forum Programming
    Replies: 3
    Last Post: 12-16-2009, 06:11 PM
  4. Report Printing
    By newtoAccess in forum Reports
    Replies: 5
    Last Post: 12-02-2009, 07:46 PM
  5. Report Printing Error
    By gjohnson71 in forum Reports
    Replies: 4
    Last Post: 03-07-2009, 12:36 PM

Tags for this Thread

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