473,509 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print 2 of Each Page in Order

I have a report (labels) that print 1 record per page. How can I print 2 of
each in this order: Page 1, Page 1, Page 2 Page 2, Page 3 Page 3...? I'm
using--

DoCmd.OpenReport "Label", acPreview, , "[Load_ID]= " & "'" & Me![Load_ID] &
"'"

--for my "Print Labels" button.

Load_ID being the field that links form and subform, and Label is the report
name.

Thanks,

Chad

Nov 13 '05 #1
2 1463
You're kinda looking in the wrong place. How about something like
this:

Private Sub PrintReports(ByVal strReport As String, ByVal intCopies As
Integer, ByVal blnCollated As Boolean)
'arguments:
'strReport = name of report to open
'intCopies = number of copies to print
'blnCollated = collate yes/no

'--Open the report
DoCmd.OpenReport strReport, acViewPreview, , , acWindowNormal

'--Print out intCopies of said report
DoCmd.PrintOut acPrintAll, , , acHigh, intCopies, blnCollated

End Sub

So your call would be...

PrintReports "Label", 2, False

Nov 13 '05 #2
You answered another one. Thanks a lot. Worked great.

Chad
<pi********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
You're kinda looking in the wrong place. How about something like
this:

Private Sub PrintReports(ByVal strReport As String, ByVal intCopies As
Integer, ByVal blnCollated As Boolean)
'arguments:
'strReport = name of report to open
'intCopies = number of copies to print
'blnCollated = collate yes/no

'--Open the report
DoCmd.OpenReport strReport, acViewPreview, , , acWindowNormal

'--Print out intCopies of said report
DoCmd.PrintOut acPrintAll, , , acHigh, intCopies, blnCollated

End Sub

So your call would be...

PrintReports "Label", 2, False

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7409
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a...
2
1317
by: Nikolay Seksenov | last post by:
I am developing VB.Net Web application to be used in our department intranet. I created a web-based report using Crystal Reports. I would like to print the report from the web server instead of...
7
1665
by: Jonathan Smith | last post by:
Hi In order to make it easier for my colleagues to write their school reports I thought I might attempt to write a (simple) program. At the moment I am working mentally through the steps I would...
0
1387
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a...
16
11417
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
10
1747
by: MLH | last post by:
If I wanted 2 of each page, could I make them print out 2 of first page, 2 of second page, 2 of third page, 2 of fourth page and 2 of 5th page? Or, do I have to run the openreport method twice...
3
2100
by: James J. Besemer | last post by:
I would like to champion a proposed enhancement to Python. I describe the basic idea below, in order to gage community interest. Right now, it's only an idea, and I'm sure there's room for...
7
20672
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
0
1012
by: deve8ore | last post by:
Hello, I have a workbook with ~ 20 sheets, all which upload with different data every week. We have some "old school" managers that are still requesting hard copies of each sheet.... problem for me...
0
7342
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
7410
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...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.