I have a Query that is comprised of 4 tables. The 'main' table is 'Estimate table', the second is 'Estimate Items Subform Table', the third is 'Estimate Details Table' and the fourth is 'Change Order Table'.
The 'Estimate Details Table' houses the components that make up the items in the Item subform table. The change order table keeps track of change orders and all of this is linked to the main Estimate Table.
When I run the query the results are correct for the Items and components but the Change order results are duplicated for every line item of estimate item details. I have the relationships set up as 1 to many for change orders, Items and Details back to the Estimate Table.
My forms run fine but when I run this query which drives a master report I get this repeated data. I have uploaded screen shots that might help explain. Can't seem to pin down the reason. Any and all help is greatly appreciated.
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10146d157615806 9/query-sql.jpg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10147d157615806 9/query-results.jpg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10148d157615806 9/master-relationships.j pg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10149d157615806 9/query-builder.jpg[/IMGNOTHUMB]
The 'Estimate Details Table' houses the components that make up the items in the Item subform table. The change order table keeps track of change orders and all of this is linked to the main Estimate Table.
When I run the query the results are correct for the Items and components but the Change order results are duplicated for every line item of estimate item details. I have the relationships set up as 1 to many for change orders, Items and Details back to the Estimate Table.
My forms run fine but when I run this query which drives a master report I get this repeated data. I have uploaded screen shots that might help explain. Can't seem to pin down the reason. Any and all help is greatly appreciated.
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10146d157615806 9/query-sql.jpg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10147d157615806 9/query-results.jpg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10148d157615806 9/master-relationships.j pg[/IMGNOTHUMB]
[IMGNOTHUMB]https://bytes.com/attachments/attachment/10149d157615806 9/query-builder.jpg[/IMGNOTHUMB]
Comment