Results 1 to 3 of 3
  1. #1
    rcflogin is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Feb 2015
    Posts
    1

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

    I am using a PRINT button in form of access 2003 to print 1st page of the Hospital OPD report name "opd_rpt".
    The associated code is as below:

    Private Sub Toggle100_DblClick(Cancel As Integer)
    DoCmd.OpenReport "opd_rpt", acViewPreview
    DoCmd.PrintOut acPages, 1, 1
    DoCmd.Close acReport, "opd_rpt"


    End Sub

    The problem is that I want to print only the last page of this report.
    Can anyone advise code for the same or change in above code.
    Thankx

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What have tried? What results?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Bing: access vba print report last page

    See question and answer at http://bytes.com/topic/access/answer...rint-last-page
    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. How do I not print a page in a report
    By SFC in forum Reports
    Replies: 3
    Last Post: 08-15-2012, 11:47 AM
  2. Report print two records per page
    By dwilson in forum Reports
    Replies: 3
    Last Post: 07-21-2012, 10:48 AM
  3. Report doesn't print on 1/3 of the page
    By wubbit in forum Reports
    Replies: 2
    Last Post: 04-17-2012, 07:44 PM
  4. Replies: 3
    Last Post: 08-07-2011, 09:22 PM
  5. Replies: 4
    Last Post: 04-11-2011, 04:25 AM

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