Results 1 to 5 of 5
  1. #1
    lyndon.pace is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    7

    Is there a way to only print the first page of a report

    Hi All,

    Basically when i hit a button, i want to be able to open a report, and only print the first page.

    Is this possable?



    Regards,

    Lyndon

  2. #2
    lyndon.pace is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    7

    Fixed - sorrta

    Theres a button command that lets you print current form. This will have to do for now.

  3. #3
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    Reports are for printing not forms - Just my little piece of advice.

    But this behind a command button.

    Code:
    Private Sub cmdPrint_Click()
    DoCmd.OpenReport "Name of Report", acViewPreview
    DoCmd.PrintOut acPages, 1, 1
    DoCmd.Close acReport, "Name of Report"
    End Sub
    This is from VB help on PrintOut Method.

  4. #4
    lyndon.pace is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Apr 2011
    Posts
    7

    Solved

    ansentry - You are a life saver, Thanks so much, this works like a charm.












    Quote Originally Posted by ansentry View Post
    Reports are for printing not forms - Just my little piece of advice.

    But this behind a command button.

    Code:
    Private Sub cmdPrint_Click()
    DoCmd.OpenReport "Name of Report", acViewPreview
    DoCmd.PrintOut acPages, 1, 1
    DoCmd.Close acReport, "Name of Report"
    End Sub
    This is from VB help on PrintOut Method.

  5. #5
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    Lyndon,

    Glad to help.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-25-2011, 03:58 PM
  2. Replies: 3
    Last Post: 12-02-2010, 12:23 PM
  3. Print full page
    By divdav in forum Access
    Replies: 3
    Last Post: 05-23-2010, 07:00 PM
  4. Scale to Print on One Page
    By diane802 in forum Reports
    Replies: 10
    Last Post: 01-19-2010, 09:28 AM
  5. code to print just first page of a report
    By tonyrice in forum Reports
    Replies: 1
    Last Post: 02-14-2007, 03:07 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