Am using version 2007 and need to evaluate the difference in 2 fields. I created a query that gives the interval in hours between 2 datetime fields. I then used this query in another one. Needing to isolate those that are less than 16 hours, I used <16 as my criteria. As below:
Acccess keeps giving me the "Data type mismatch in criteria expression" message.
This is the first time I've had this happen, and have used DateDiff successfully in the past. Am pullling my hair out, so any comments or help will be greatly appreciated.
LakMan
Code:
SELECT qry15MinByPassTimes.ysnUnder15Mins, qry15MinByPassTimes.Duration
FROM qry15MinByPassTimes
WHERE (((qry15MinByPassTimes.Duration)<16))
This is the first time I've had this happen, and have used DateDiff successfully in the past. Am pullling my hair out, so any comments or help will be greatly appreciated.
LakMan