diddydustin
Programmer
Hey guys, I'm trying the following query:
SELECT EMR_SheetsUnion.TotalSheets,
Sum(EMR_TimeUnion.[Sum Of Time_Total]/3600) AS [SumOfSum Of Time_Total],
EMR_TimeUnion.Machine,
EMR_TimeUnion.Shift,
EMR_TimeUnion.Date,
EMR_TimeUnion.[Sum Of Time_Total],
EMR_TimeUnion.Time_Code,
EMR_Time_Report.Downtime,
EMR_Time_Report.Makeready,
EMR_Time_Report.[Run Time]
FROM EMR_Time_Report
INNER JOIN (EMR_TimeUnion INNER JOIN EMR_SheetsUnion ON EMR_TimeUnion.Machine = EMR_SheetsUnion.Machine) ON EMR_Time_Report.Machine = EMR_TimeUnion.Machine
GROUP BY
EMR_SheetsUnion.TotalSheets,
EMR_TimeUnion.Machine,
EMR_TimeUnion.Shift,
EMR_TimeUnion.Date,
EMR_TimeUnion.[Sum Of Time_Total],
EMR_TimeUnion.Time_Code,
EMR_Time_Report.Downtime,
EMR_Time_Report.Makeready, EMR_Time_Report.[Run Time];
I am very confused on why the query causes Access to crash. It is a complex query-- basically I am trying to combine three queries I used to create three seperate reports into one. Is there a cleaner approach to doing this? If not, why does this not work?
Thank you
Dustin
SELECT EMR_SheetsUnion.TotalSheets,
Sum(EMR_TimeUnion.[Sum Of Time_Total]/3600) AS [SumOfSum Of Time_Total],
EMR_TimeUnion.Machine,
EMR_TimeUnion.Shift,
EMR_TimeUnion.Date,
EMR_TimeUnion.[Sum Of Time_Total],
EMR_TimeUnion.Time_Code,
EMR_Time_Report.Downtime,
EMR_Time_Report.Makeready,
EMR_Time_Report.[Run Time]
FROM EMR_Time_Report
INNER JOIN (EMR_TimeUnion INNER JOIN EMR_SheetsUnion ON EMR_TimeUnion.Machine = EMR_SheetsUnion.Machine) ON EMR_Time_Report.Machine = EMR_TimeUnion.Machine
GROUP BY
EMR_SheetsUnion.TotalSheets,
EMR_TimeUnion.Machine,
EMR_TimeUnion.Shift,
EMR_TimeUnion.Date,
EMR_TimeUnion.[Sum Of Time_Total],
EMR_TimeUnion.Time_Code,
EMR_Time_Report.Downtime,
EMR_Time_Report.Makeready, EMR_Time_Report.[Run Time];
I am very confused on why the query causes Access to crash. It is a complex query-- basically I am trying to combine three queries I used to create three seperate reports into one. Is there a cleaner approach to doing this? If not, why does this not work?
Thank you
Dustin