J
Jeff Gross
I have a query that works in Access but when I convert it to Excel, I get
errors. Can someone help me with converting this to MS Query SQL Excel 2003
language?
Here is the original Access coding:
SELECT HS_Incident.[Plant Name], HS_Incident.[Incident Date],
HS_Incident.[Incident Desc], HS_Incident.[Lost Time Case],
HS_Incident.[Report Date]
FROM HS_Incident
WHERE (Datediff('d',[HS_Incident].[Incident Date],date())<=7) and
[HS_Incident].[Lost Time Case] like 'Y%' and [HS_Incident].[Plant Name]
<>'MARKHAM ' or (Datevalue([HS_Incident].[Report Date])>datevalue(date())-7)
Any help would be greatly appreciated.
Jeff
errors. Can someone help me with converting this to MS Query SQL Excel 2003
language?
Here is the original Access coding:
SELECT HS_Incident.[Plant Name], HS_Incident.[Incident Date],
HS_Incident.[Incident Desc], HS_Incident.[Lost Time Case],
HS_Incident.[Report Date]
FROM HS_Incident
WHERE (Datediff('d',[HS_Incident].[Incident Date],date())<=7) and
[HS_Incident].[Lost Time Case] like 'Y%' and [HS_Incident].[Plant Name]
<>'MARKHAM ' or (Datevalue([HS_Incident].[Report Date])>datevalue(date())-7)
Any help would be greatly appreciated.
Jeff