Results 1 to 2 of 2
  1. #1
    rivergum_23 is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Nov 2011
    Posts
    14

    VBA Print

    Hi All,
    Can you please help with this VBA.



    I am trying to print 5 copies of the report via the button on the form.

    I'm sure I have the code correct, however I only prints 1 copy instead of 5.

    Please help...

    Thanks heaps in advance.

    River

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Changed your code slightly to:

    Code:
    Private Sub Command0_Click()
    Dim nPPages As Integer
    
    DoCmd.SelectObject acReport, "Table1", True
    DoCmd.PrintOut , , , , 5
    
    End Sub
    and it worked for me.

    Also look at this for reference purposes:

    http://access.mvps.org/access/reports/rpt0001.htm

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

Similar Threads

  1. Replies: 5
    Last Post: 10-26-2011, 02:59 PM
  2. Print Preview and Print Different!
    By _Boo in forum Reports
    Replies: 3
    Last Post: 06-21-2011, 12:51 PM
  3. Replies: 0
    Last Post: 02-22-2011, 05:04 AM
  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