M
MFranz
Hi everyone,
I’ve created a query to display only records between Jan 1 of Year(Date())
and Dec 31 of Year(Date()). The problem is that the query will not display
records before Jan 30th. I’m not sure why it’s doing this, I’ve included the
SQL I’m using below. Any help or ideas would be greatly appreciated.
SELECT [Maintenance Info - Inspection Info].[PID/Maplot], [Maintenance Info
- Inspection Info].[Most Recent Inspection Date], [Maintenance Info -
Inspection Info].[Results of Most Recent Inspection], 1 AS [Fail Value]
FROM [Maintenance Info - Inspection Info]
WHERE ((([Maintenance Info - Inspection Info].[Most Recent Inspection Date])
Between DateSerial(Year(Date())-1,Month(2-1),Day(2-1)) And
DateSerial(Year(Date())-1,Month(12),Day(31))));
MFranz
I’ve created a query to display only records between Jan 1 of Year(Date())
and Dec 31 of Year(Date()). The problem is that the query will not display
records before Jan 30th. I’m not sure why it’s doing this, I’ve included the
SQL I’m using below. Any help or ideas would be greatly appreciated.
SELECT [Maintenance Info - Inspection Info].[PID/Maplot], [Maintenance Info
- Inspection Info].[Most Recent Inspection Date], [Maintenance Info -
Inspection Info].[Results of Most Recent Inspection], 1 AS [Fail Value]
FROM [Maintenance Info - Inspection Info]
WHERE ((([Maintenance Info - Inspection Info].[Most Recent Inspection Date])
Between DateSerial(Year(Date())-1,Month(2-1),Day(2-1)) And
DateSerial(Year(Date())-1,Month(12),Day(31))));
MFranz