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

Home Posts Topics Members FAQ

Collating Report Output

44 New Member
I'm trying to print out billings with cover letters to about 800 customers. I can't figure out how to include the cover letter in the billing report, because each customer can have several pages of line items in the bill and there have to headings on each page. I don't want these headings to appear on the cover letter so I can't seem to include the cover letter as a 'customer header' which is what I thought I might be able to do. If I print the cover letters separately then someone has collate the bills and the letters by hand. Is there some way to combine it so it's pre-collated.

Thanks
Nov 21 '07 #1
11 3373
puppydogbuddy
1,923 Recognized Expert Top Contributor
I'm trying to print out billings with cover letters to about 800 customers. I can't figure out how to include the cover letter in the billing report, because each customer can have several pages of line items in the bill and there have to headings on each page. I don't want these headings to appear on the cover letter so I can't seem to include the cover letter as a 'customer header' which is what I thought I might be able to do. If I print the cover letters separately then someone has collate the bills and the letters by hand. Is there some way to combine it so it's pre-collated.

Thanks
See this link for a "how to" collate 2 reports in ms access:

http://support.microsoft.com/kb/292461
Nov 21 '07 #2
Bhujanga
44 New Member
See this link for a "how to" collate 2 reports in ms access:

http://support.microsoft.com/kb/292461

Thanks for replying to my question. I studied the code and it appeared to me that the routine collates by actually alternating one page from one report and then one page from the other report. This won't work for my situation, because sometimes one of the reports will have multiple pages for one customer, and need each customers cover to appear before their potentially multi-page bill report. So I need to make the collation switch at customer break headers rather than each page. Do you have any ideas for that case?
Nov 23 '07 #3
puppydogbuddy
1,923 Recognized Expert Top Contributor
Thanks for replying to my question. I studied the code and it appeared to me that the routine collates by actually alternating one page from one report and then one page from the other report. This won't work for my situation, because sometimes one of the reports will have multiple pages for one customer, and need each customers cover to appear before their potentially multi-page bill report. So I need to make the collation switch at customer break headers rather than each page. Do you have any ideas for that case?
Your interpretation is not correct. See this comment line from the code:

'NumPages is the number of pages in the largest report

Try the code first, then let me know if it is not working.
Nov 23 '07 #4
puppydogbuddy
1,923 Recognized Expert Top Contributor
PS: If you have page breaks set up by customer in the report, they will be printed with the breaks the same way.
Nov 23 '07 #5
Bhujanga
44 New Member
PS: If you have page breaks set up by customer in the report, they will be printed with the breaks the same way.
I must be doing something fundamentally wrong. I put the first part of the code ver batim at the top of what I believe is considered the "Module", i.e. the first lines of the code window for the form on which I'll put the command button.

Then I took the other line of code, replacing its report names with mine. VB doesn't want to accept this. It is expecting an = sign. So I haven't been succesful testing it. I fear my programming knowledge base is a bit lacking.
Nov 23 '07 #6
puppydogbuddy
1,923 Recognized Expert Top Contributor
I must be doing something fundamentally wrong. I put the first part of the code ver batim at the top of what I believe is considered the "Module", i.e. the first lines of the code window for the form on which I'll put the command button.

Then I took the other line of code, replacing its report names with mine. VB doesn't want to accept this. It is expecting an = sign. So I haven't been succesful testing it. I fear my programming knowledge base is a bit lacking.
No, the module referred to in the link does not mean form module. It refers to a standard module that you can create by going to the database window and clicking the module object, which is the object that follows macros in the db window. You will "call" the module from the button on your form.
Nov 23 '07 #7
Bhujanga
44 New Member
Ok, I created a new module and put the function code in there ver batim.
Then on my form, I created a button, and in the click event code I attempted to put the following code in:
CollateReports(1, "Annual_Billing_CoverLetter", "AnnualBilling")
It protests immediately, saying that it is expecting an '=' sign.
Am I missing a step somewhere?
Nov 26 '07 #8
puppydogbuddy
1,923 Recognized Expert Top Contributor
Ok, I created a new module and put the function code in there ver batim.
Then on my form, I created a button, and in the click event code I attempted to put the following code in:
CollateReports(1, "Annual_Billing_CoverLetter", "AnnualBilling")
It protests immediately, saying that it is expecting an '=' sign.
Am I missing a step somewhere?
From what I can tell from the instructions, 'NumPages is the number of pages in the largest report which is used to determine the number of loops through the code. So, try changing the 1 you entered below to the number of pages in your largest report....So if your annual billing report is for 80 customers, 1 page per customer, put 80. This should cycle the code for your two reports 80 times, one for each customer. Also, make sure that your function is designated as a Public Function in the standard module. If this doesn't fix it, then please post the function code you have in the standard module.

Change this:
CollateReports(1, "Annual_Billing_CoverLetter", "AnnualBilling")

to this:
CollateReports(80, "Annual_Billing_CoverLetter", "AnnualBilling")
Nov 26 '07 #9
Bhujanga
44 New Member
I appreciate all your help on this. I still can't get the VB editor to accept that statement. It keeps wanting an equal sign somewhere. In any case I've had to abandon this particular detail for the time being in the interest of not letting the project fall behind. If I have time later I might revisit it. For now they're going to have to collate by hand. Thanks again.
Nov 27 '07 #10
puppydogbuddy
1,923 Recognized Expert Top Contributor
I appreciate all your help on this. I still can't get the VB editor to accept that statement. It keeps wanting an equal sign somewhere. In any case I've had to abandon this particular detail for the time being in the interest of not letting the project fall behind. If I have time later I might revisit it. For now they're going to have to collate by hand. Thanks again.
This link should help if you decide to pursue. The link is to a free download of Microsoft sample reports for Access 2000, which includes a sample collated report. It should be relatively easy for you to compare the sample with what you coded and figure out what the problem is.

http://support.microsoft.com/kb/231851/EN-US/
Nov 27 '07 #11
Bhujanga
44 New Member
Thanks, I'll check it out.
Nov 27 '07 #12

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

Similar topics

2
1785
by: Greg Lindstrom | last post by:
I have an interesting problem. I have a (one) text file containing multiple reports. I have multiple TIF files, one for each page in the report file. What I would like to do is merge the two...
1
2650
by: Yaro | last post by:
Hi We want to create case-insensitive database (DB2 8.2.2 Win) . I found information we need create custom collating sequence and create database with this sequence but I can't find informations...
15
13255
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
3
3904
by: Phil Stanton | last post by:
In code I am opening a report in deign view, adding code to the report to output it to Word in an editable form. I then want t close the report but not save the changes. Is there any way or...
1
1890
by: Andy_Khosravi | last post by:
I'm having trouble building a query to gather the information I need from a table. I need to be able to assemble an inventory report that displays receipts, output, and running inventory from a...
17
1881
by: Ron Adam | last post by:
I put together the following module today and would like some feedback on any obvious problems. Or even opinions of weather or not it is a good approach. While collating is not a difficult thing...
1
1756
by: davidreid | last post by:
Hi, I created 2 seperate Crystal reports and each report performs its own calculations. However, I need to multiply the output of Report 1 with the output of Report 2. I created a new Crystal...
0
1593
by: pam | last post by:
We have a customer who would like to see their data sorted in a case- insensitive manner. I've tried several of the out of the box collating sequences (identity, system, compatibility) but none of...
0
1842
by: Frank Swarbrick | last post by:
What might be a good test to demonstrate the difference between the SYSTEM (UNIQUE?) collating sequence and the IDENTITY collating sequence? Thanks, Frank
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7042
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
7495
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...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
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
3193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.