diddydustin
Programmer
Hey guys,
I'm using the following query:
SELECT EMR_TotalGraphicTime.[Sum Of Time_Total],
EMR_TotalGraphicTime.Time_Code,
EMR_TimeCodeList.Desc,
EMR_Base.Machine,
EMR_Base.Date,
EMR_Base.Shift
FROM
(EMR_Base INNER JOIN EMR_TotalGraphicTime ON EMR_Base.Time_ID = EMR_TotalGraphicTime.Time_ID) INNER JOIN EMR_TimeCodeList ON EMR_TotalGraphicTime.Time_Code = EMR_TimeCodeList.Code
WHERE
(((1)=1) AND ((EMR_Base.Machine)=1224) AND ((EMR_TotalGraphicTime.Time_Code)=[EMR_TimeCodeList].
I'm using the following query:
SELECT EMR_TotalGraphicTime.[Sum Of Time_Total],
EMR_TotalGraphicTime.Time_Code,
EMR_TimeCodeList.Desc,
EMR_Base.Machine,
EMR_Base.Date,
EMR_Base.Shift
FROM
(EMR_Base INNER JOIN EMR_TotalGraphicTime ON EMR_Base.Time_ID = EMR_TotalGraphicTime.Time_ID) INNER JOIN EMR_TimeCodeList ON EMR_TotalGraphicTime.Time_Code = EMR_TimeCodeList.Code
WHERE
(((1)=1) AND ((EMR_Base.Machine)=1224) AND ((EMR_TotalGraphicTime.Time_Code)=[EMR_TimeCodeList].
Code:
))
GROUP BY
EMR_TotalGraphicTime.[Sum Of Time_Total], EMR_TotalGraphicTime.Time_Code,
EMR_TimeCodeList.Desc,
EMR_Base.Machine,
EMR_Base.Date,
EMR_Base.Shift;
Here's an example of the what the query returns:
Machine Sum Of Time_Total Time_Code Desc Date Shift
1224 5400 900 ? 0/9/2004 1
The values in Desc where the ? shows up are like this:
Code Desc
1 Machine Not Scheduled
2 Startup
3 Shutdown
4 Clean/Grease
5 Scheduled Maintenance
6 Non-Scheduled Maintenance (Mechanical)
Desc is of type Memo.
Do you guys know why it won't return the value 'Machine Not Scheduled' for example instead of ?? I'm using this query for a report and I need to display the details about the time code.
Thank you
diddydustin