T
twinspar
I am trying to create a query from several "preliminary" queries. Each prelim
query is finding it's data in a different source table (partscost, laborcost,
etc) The prelim queries each have a record UID field, a dateposted field, a
tablesource identifier (SID), and a cost field. I need to combine data
retreived from the prelim queries into a simple TotalCostQry, grouped by UID.
The UID is a joined field from the primary WorkOrder table. See sample data:
Prelim_PartsQry
UID dateposted SID partscost
003 20060801 P 3.52
003 20060803 P 9.27
005 20060804 P 15.75
005 20060808 P 8.29
Prelim_LaborQry
UID dateposted SID laborcost
003 20060801 L 63.24
005 20060808 L 23.72
I want my totals query to return a result like:
TotalCostQry
UID dateposted SID cost
003 20060801 P 3.52
003 20060801 L 63.24
003 20060803 P 9.27
005 20060804 P 15.75
005 20060808 P 8.29
005 20060808 L 23.72
The big challenge here for me is finding a way to combine all date entries
from prelim queries into a single dateposted field.
query is finding it's data in a different source table (partscost, laborcost,
etc) The prelim queries each have a record UID field, a dateposted field, a
tablesource identifier (SID), and a cost field. I need to combine data
retreived from the prelim queries into a simple TotalCostQry, grouped by UID.
The UID is a joined field from the primary WorkOrder table. See sample data:
Prelim_PartsQry
UID dateposted SID partscost
003 20060801 P 3.52
003 20060803 P 9.27
005 20060804 P 15.75
005 20060808 P 8.29
Prelim_LaborQry
UID dateposted SID laborcost
003 20060801 L 63.24
005 20060808 L 23.72
I want my totals query to return a result like:
TotalCostQry
UID dateposted SID cost
003 20060801 P 3.52
003 20060801 L 63.24
003 20060803 P 9.27
005 20060804 P 15.75
005 20060808 P 8.29
005 20060808 L 23.72
The big challenge here for me is finding a way to combine all date entries
from prelim queries into a single dateposted field.