VERY new to Access.
I've created relationships between my two databases (WorkCell and EventHistory), linking together Part#, ShiftDateTime, Machine#... which share the same column names and values.
Here's WorkCell:
ShiftDateTime Machine # Part # Total Pieces 12/18/2015 05:45 Press # 01 Skin1 5 12/18/2015 05:45 Press # 01 Skin1 7 12/18/2015 05:45 Press # 02 Skin2 3 12/18/2015 05:45 Press # 02 Skin2 6
Here's EventHistory
ShiftDateTime Machine # Part # EventCode Defect Code 12/18/2015 05:45 Press # 01 Skin1 Scrap Crack 12/18/2015 05:45 Press # 02 Skin2 Scrap Blister 12/18/2015 05:45 Press # 02 Skin2 Scrap Nonfill 12/18/2015 05:45 Press # 02 Skin2 Scrap Blister
How could I create a query that would return:
ShiftDateTime Machine # Part # Total Pieces Crack Blister Nonfill 12/18/2015 05:45 Press # 01 Skin1 12 1 0 0 12/18/2015 05:45 Press # 02 Skin2 9 0 2 1
Is this possible? I current have a query with ShiftDateTime/Machine#/Part# linked together... grouping by shiftdatetime/machine#/part# then summing TotalPcs...
Any help would be greatly appreciated.