473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How do I get multiple reports in 1 PDF File

10
I'm using Access 2007 with the PDF driver installed. I have 2 reports that I want to merge into 1 PDF file. I'm using the following coding:

Expand|Select|Wrap|Line Numbers
  1.         Set mdbCurrent = CurrentDb
  2.  
  3.         Set Master = mdbCurrent.OpenRecordset(strSQL, dbOpenDynaset, dbSeeChanges)
  4.  
  5.         Do While Not (Master.EOF)
  6.             gDealer = Master!Dealer_Num
  7.             gProv = Master![ST/PROV]
  8.             stDocName = "General_Field_Order"
  9.  
  10.             If gProv = "PQ" Then
  11.                 stDocName1 = "General_MIR_French"
  12.             Else
  13.                 stDocName1 = "General_MIR_English"
  14.             End If
  15.  
  16.             DoCmd.OutputTo acOutputReport, stDocName, "PDFFormat(*.pdf)", "C:\Summer_Maintenance\Test\Test_Dealers1", False, "", 0, acExportQualityPrint
  17.  
  18.             DoCmd.OutputTo acOutputReport, stDocName1, "PDFFormat(*.pdf)", "C:\Summer_Maintenance\Test\Test_Dealers1", False, "", 0, acExportQualityPrint
  19.  
  20.             Master.MoveNext
  21.         Loop
  22.         mdbCurrent.Close
  23.  
The result of this is that a pdf file is created containing the last report
stDocName1.
What I want for each gDealer is the first report follwed by the second report outputed to a pdf file.
The resulting pdf file would have dealer 1 - report1 and report2, then dealer 2 - report1 and report2,etc.
Dec 3 '09 #1
0 1246

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of...
0
by: Eliezer Figueroa | last post by:
Managing Multiple Excel incoming files? I have this situation. I have a client which have several locations they work primary with excel forms and they are thinking in doing reports with them....
0
by: AIMTech | last post by:
We have an IIS+ASP based application server that is capable of providing complex reports to hundreds of users but in some circumstances these reports can take a long time to create. However the...
3
by: Mike Wiseley | last post by:
I want to insert a procedure call to the report close event of 50 or so reports in a database. As each report is opened and then closed by a user, I want to log the date this occurrred. I am...
1
by: Ren | last post by:
I have set up an access database with a switchboard to multiple forms, reports, etc. I have gotten comflicting information about whether or not staff throughout my facility will be able to view...
3
by: MHenry | last post by:
Hi, I have 30 separate Access reports to print to pdf files. Presently, I print these reports to Acrobat pdf files one report at a time. I am looking for some help, or a program or add-in...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
3
by: ian_jacobsen | last post by:
First let me start by saying that this problem is not consistently reproducible. I have a windows service that creates reports for a group of entities. This service can process multiple groups at...
4
by: jvan2008 | last post by:
"Form1" combobox "cboModel" Row Source SELECT ., . FROM tblModel ORDER BY ; combobox "cboContactName" SELECT . FROM Query1 ORDER BY ;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.