Hi all,
I have been working on a report which has proven to be a tad bit difficult only because the data is being pulled and rearranged from 4 different tables (actually, 1 query and 3 tables).
The query which populates the report is working perfectly fine. it displays teh data from the 4 tables in the correct manner. When i run the query, it works great.
the problem is when i try to open my report, a pop up message appears saying:
The specified field 'Glassing_inspection.operator' could refer to more than one table listed in the FROM clause of your SQL statement.
The following is the SQL from the query i am using on my report:
SELECT ([Glassing_Inspection].[date_time]) AS shiftdate, Switch(TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(0,0,0) And TimeSerial(5,0,0),"3rd Shift",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(5,30,0) And TimeSerial(14,0,0),"1st Shift (Days)",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(14,0,0) And TimeSerial(22,0,0),"2nd Shift",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(22,0,0) And TimeSerial(0,0,0),"3rd Shift") AS WorkShift, Glassing_Inspection.Part_Number, Glassing_Yield.WO, Dicing_Yield.Diffusion_Lot, Glassing_Inspection.EvapLot, qry_totalyield.SumOfStart_Qty, qry_totalyield.SumOfYield, Glassing_Inspection.Operator, Glassing_Inspection.Glassing_Lot, Glassing_Yield.Operator
FROM Dicing_Yield INNER JOIN (qry_totalyield INNER JOIN (Glassing_Yield INNER JOIN Glassing_Inspection ON Glassing_Yield.WO = Glassing_Inspection.Work_Order) ON qry_totalyield.WO = Glassing_Inspection.Work_Order) ON Dicing_Yield.Work_Order = qry_totalyield.WO
GROUP BY ([Glassing_Inspection].[date_time]), Switch(TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(0,0,0) And TimeSerial(5,0,0),"3rd Shift",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(5,30,0) And TimeSerial(14,0,0),"1st Shift (Days)",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(14,0,0) And TimeSerial(22,0,0),"2nd Shift",TimeValue([glassing_inspection].[Date_Time]) Between TimeSerial(22,0,0) And TimeSerial(0,0,0),"3rd Shift"), Glassing_Inspection.Part_Number, Glassing_Yield.WO, Dicing_Yield.Diffusion_Lot, Glassing_Inspection.EvapLot, qry_totalyield.SumOfStart_Qty, qry_totalyield.SumOfYield, Glassing_Inspection.Operator, Glassing_Inspection.Glassing_Lot, Glassing_Yield.Operator
HAVING (((([Glassing_Inspection].[date_time])) Between [Forms]![frm_rptInspectionShiftYield_ByDateRange]![txtStartDate] And [Forms]![frm_rptInspectionShiftYield_ByDateRange]![txtEndDate]));
What would the main source of this error pop up be?
thanks
j