Doozer1979
Registered User.
- Local time
- Today, 06:49
- Joined
- Jul 4, 2007
- Messages
- 32
Hello,
I got the 'syntax error' in the following query. The query works fine when i look for items that don't appera in the list on ONE particular day, but when i look for items that don't appear in the list within a given date range, the query falls over
SELECT StationGroup.StationGroupName, Stations.StationName
FROM Stations LEFT JOIN StationGroup ON Stations.StationGroupID = StationGroup.StationGroupID
WHERE
(((Stations.StationID) Not In
(SELECT Station FROM AlertsAM
WHERE
DateOfAction => Forms![frmReports]![cboUncheckedStations] AND <= Forms![frmReports]![cboUncheckedStations2] )))
ORDER BY StationGroup.StationGroupID;
Not sure what i'm doing wrong. Can anyone help?
thanks
I got the 'syntax error' in the following query. The query works fine when i look for items that don't appera in the list on ONE particular day, but when i look for items that don't appear in the list within a given date range, the query falls over
SELECT StationGroup.StationGroupName, Stations.StationName
FROM Stations LEFT JOIN StationGroup ON Stations.StationGroupID = StationGroup.StationGroupID
WHERE
(((Stations.StationID) Not In
(SELECT Station FROM AlertsAM
WHERE
DateOfAction => Forms![frmReports]![cboUncheckedStations] AND <= Forms![frmReports]![cboUncheckedStations2] )))
ORDER BY StationGroup.StationGroupID;
Not sure what i'm doing wrong. Can anyone help?
thanks