Hi,
I got a linked table with a field called ENDDATETIME displaying the date and time. I need to run a query that displays ENDDATETIME occurring on a date such as 1/1/2017 but ignoring the hours, minutes, and seconds.
The problem is that I can't find records by only the date. So if I want to find an end date time occurring on 1/1/2017, I have to include the precise hours, minutes, and seconds.
I went into the table design properties and chaned the format and input mask but I'm barking up the wrong tree.
What should I do to enable querying by only the short date while ignoring the time?
Here is the SQL
Code:
SELECT CLASSROSTERVIEW.CLASSSESSIONID, CLASSROSTERVIEW.COURSE_ID, CLASSROSTERVIEW.ENDDATETIME, CLASSROSTERVIEW.COURSETITLE
FROM CLASSROSTERVIEW
WHERE (((CLASSROSTERVIEW.ENDDATETIME)>=#5/22/2009#));
If I remove the greater than sign, I get nothing because of the ENDATETIME is in this format (for example): 4/14/2015 4:00:49 PM
Thanks,
Al