I imported two excel spreadsheets from excel to Access. Invoice Register 2005 table and Invoice Register 2006 table. These excel files were exports from peachtree.
Each client can have multiple invoices in each of these registers. Each client though does have a unique client numbers but in these tables there are duplicate client numbers because off the multiple invoices created throughout the year.
I created a query linking these two tables together and what is happening when I link the two tables using the Client ID numbers the invoices are listing more than once.
Example there is a client with 3 invoices in 2005 and 3 invoices in 2006 (different invoice numbers) so in stead of listing six invoices for this one client there are nine records. The query shows nine invoices but there are only six for this one client - it is duplicating some of these invoices twice.
What I am trying to show is the client ID and Client name and the invoice register for 2005 and 2006. Is this possible?
Lborshard
I think what you need is to UNION the two table instead of JOIN them.|||
I will read up on UNION and give it a try.
Thank you.
lborshard
|||phe,
Thanks for the help the Union did work - what a learning experience.
The only thing now, is that I need the 2005 Invoice Column/field and the 2006 Invoice column/ field to be seperate columns as I started with in the import.
The query combined the 2005 and 2006 invoices underneath each other. Is there any way I can list these two columns in the union query?
lborshard
Originally when I linked these two seperate tables together it seemed to copy/duplicate some of the invoice. For example: one client had 3 invoices in 2005 and 3 invoices in 2006 - the client ID was the link - Instead of showing 6 individual invoice for that specific client it showed nine.
No comments:
Post a Comment