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
11 3373
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
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?
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.
PS: If you have page breaks set up by customer in the report, they will be printed with the breaks the same way.
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.
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.
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?
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")
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.
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/
Thanks, I'll check it out.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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
|
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,...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |