Repeated results (1 Viewer)

XaloRichie

Registered User.
Local time
Today, 06:53
Joined
Jul 2, 2003
Messages
70
I have a query based on one table (Customers) and two other queries. (Orders) and (Invoices)

I have a function in the criteria of the new query which selects the customer but the results are repeated !

For 1 invoice i see 6 records of the same invoice.

Is it anything to do with (Output all fields)?

Please help.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:53
Joined
Feb 19, 2002
Messages
43,396
The problem is that Customers has a 1-to-many relationship with orders and Customers has a 1-to-many relationship with Invoices but Orders and Invoices have no relationship. Therefore, to explain your output - you are seeing 6 invoice rows because the Customer has 6 Orders. If you are not selecting any columns from Orders, remove the table from the query.
 

Users who are viewing this thread

Top Bottom