Joining Fields shows duplicates

randolphoralph

Registered User.
Local time
Yesterday, 19:00
Joined
Aug 4, 2008
Messages
101
I have two tables (One table named Customer Info has address, phone #...etc and the other table named Customer Order has order info)

I have joined the Customer # field from both tables and set it to include all records from 'Customer Info' and only those records from 'Customer Order' where the joined fields are equal.

The problem is that when I run the query if a certain customer has more than one order in the Customer Order table it duplicates the Customer Info for each order.

Here is a example of what the query is doing:

Customer X Customer X Address Item Price
Customer X Customer X Address Item Price

Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price
Customer Y Customer Y Address Item Price


How do I prevent this?

Here is a example of what I am looking for.


Customer X Customer X Address Item Price
-------------------------------Item Price

Customer Y Customer Y Address Item Price
-------------------------------Item Price
-------------------------------Item Price


*Disregard the ---- I had to do that so that the items would line up
 
Last edited:
I think if you set your query to a pivot table, you may be able to achieve the expected results.
Alan
 
I thought that there may be another way of doing this short of a pivot table or report.

If I pulled it into Excel is there a way?
 
If you pull it back into Excel, there is still the pivot table option, or a manual elimination of the cells. Actually, the Pivot Table seems like the easiest means to accomplish exactly what you are looking for.

Alan
 
The best way for this is either a form with a subform or a report with a subreport.
 

Users who are viewing this thread

Back
Top Bottom