I need to check the records of an Access Database that has a SigninTime
field of data type DATETIME
for any sign in that occurred between 6PM and 8PM.
I've tried:
SELECT TestingStatistics.SigninTime
FROM TestingStatistics
WHERE datepart(h,TestingStatistics.SigninTime) >=18;
Which asks me to define H
And
SELECT TestingStatistics.SigninTime
FROM TestingStatistics
WHERE TestingStatistics.SigninTime >=18;
Which just returns everything.
How do you search a DATETIME Field using Time instead of a date? Furthermore what query should I run?