473,382 Members | 1,639 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,382 software developers and data experts.

How to add mailing addresses to an invoice report

77 64KB
I have to prepare invoice statements to send to my clients. From my invoices query, I was able to generate the invoices as a report.

However, I want to add two types of mailing addresses to this invoice report: "From" mailing address (my company's mailing address) and a "To" mailing address (the recipient's mailing address).

I have created a Clients table which contains the company's mailing address details. There is a separate ClientContacts table which contains the primary contact name and the secondary contact name (along with their email addresses) for the respective company. On the ClientContacts table, the ClientID is the foreign key which is linked to the Clients table. On the Invoice table, the ClientID is the foreign key which is linked to the Clients table.

My problem is how to incorporate this information on the invoice report.

Previously, but I added the clients and client contacts fields to the query and I noticed that the invoice data had doubled. As an example, the primary contact person was linked to an invoice A on one line item, and then the secondary contact person was linked to same invoice A data on the next line. Is this what is expected to happen?

I wanted the mailing addresses to appear in the page header of the report and the invoice data to appear in the detail section of the report.

What I have done is to create an unbounded text box on the invoice report and manually type in this information. Is there a way to add my company mailing address as a "From" mailing address and the recipient's mailing address as a "To" mailing address on the report automatically?
Nov 21 '14 #1

✓ answered by twinnyfo

Previously, but I added the clients and client contacts fields to the query and I noticed that the invoice data had doubled. As an example, the primary contact person was linked to an invoice A on one line item, and then the secondary contact person was linked to same invoice A data on the next line. Is this what is expected to happen?
This will happen in your queries when you have two contacts associated with that Client.

If you want just the address, add just the address information from the Client Table. If you must use the contacts, then have a separate query that lists only the contacts, and add this information in a Subreport on your main report. Use the Client ID to link the Sub report to the main report in Master Child relationship.

For your mailing address, you can perform similar actions.

1 1017
twinnyfo
3,653 Expert Mod 2GB
Previously, but I added the clients and client contacts fields to the query and I noticed that the invoice data had doubled. As an example, the primary contact person was linked to an invoice A on one line item, and then the secondary contact person was linked to same invoice A data on the next line. Is this what is expected to happen?
This will happen in your queries when you have two contacts associated with that Client.

If you want just the address, add just the address information from the Client Table. If you must use the contacts, then have a separate query that lists only the contacts, and add this information in a Subreport on your main report. Use the Client ID to link the Sub report to the main report in Master Child relationship.

For your mailing address, you can perform similar actions.
Nov 24 '14 #2

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

Similar topics

5
by: Jay Villa | last post by:
I want to store multiple mailaddress like home address and shipping address Sometimes addresses will be more than two. I am thinking about storing the details as a dictionary object. Any other...
2
by: (Pete Cresswell) | last post by:
For better or worse, I have chosen to implement mailing addresses in a particular application as a separate table. One Person ==> Many Addresses. It is a database for managing school reunions...
1
by: Khaled Atta | last post by:
Hi everybody I am new to C# I am making some new small business solutions (Real Estate System) So I needed to generate lots of reports in this System I have made a new windows control to help me...
0
by: Brad Allison | last post by:
Sorry to be a nuisance since I am learning, but I have yet another question. Is there a way to e-mail a Crystal Report that was generated from my VB .Net application? I want to do this by using...
4
by: lawazia | last post by:
I am doing a project in which I have to create INVOICE reports I am using VB6 and Active reports. I am facing problem while creating a multipage invoice report. If the invoice report generated...
4
by: mikeDA | last post by:
I have an invoice report in Access. I have three invoices. I want to force a page break after each invoice# so I end up with three invoices, each with a header (invoice# date etc.), detail (items...
1
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, What would be the best approache to create an invoice report? What I would like to know is, how to make all that graphics with "irregular" tables. Thanks, Lubomir
5
by: eyalco | last post by:
I've created an invoice form which generates a report. I've also created a form in which the user defines how many copies he wants to print with the original (with a loop to the number of copies...
6
by: ebasshead | last post by:
Hi Everybody, Firstly thank you for all the help this site has given me over the past year in getting my database to hum, its been awesome. I'm currently building an itemised invoice report to...
1
by: Mari Scheetz | last post by:
I have an Access database used for inventory control, printing customer invoices, statements, etc. I just transferred it to a Windows 7 pc and now the Invoice report will not print correctly on the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.