Solved

Print only one page of an ACCESS 2003 report

Posted on 2013-02-04
3
569 Views
Last Modified: 2013-02-04
How do I print just the first page of an ACCESS 2003 report in VBA?

Sandra
0
Comment
Question by:ssmith94015
3 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 38851814
0
 
LVL 28

Accepted Solution

by:
omgang earned 500 total points
ID: 38851816
Public Sub PrintReport()
On Error GoTo Err_PrintReport

    DoCmd.OpenReport "MyReport", acViewPreview
        'print the report - specify page from and page to
    DoCmd.PrintOut acPages, 1, 1

Exit_PrintReport:
    Exit Sub

Err_PrintReport:
    MsgBox Err.Number & " (" & Err.Description & ") in procedure PrintReport of Module Module9"
    Resume Exit_PrintReport

End Sub


OM Gang
0
 

Author Closing Comment

by:ssmith94015
ID: 38852565
Thank you, this worked perfectly.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now