I thought that the Date() function did not have a time component and that if you say <Date() as a criteria, it will only include records before today's date. What I'm trying to do is pull a field value for the most recent date (less than today's date) from a table with multiple dates. If I try
There are no results even though there are records in tblUserCount with yesterday's date. Please advise.
Code:
SELECT Max(tblUserCount.CurrentDate) AS MaxOfCurrentDate FROM tblUserCount HAVING (((Max(tblUserCount.CurrentDate))<Date()));
Comment