Reputation: 179
I have a time/date field in my select query and I want to set the criteria to only return records from the last 90 minutes. What criteria should I use?
Upvotes: 0
Views: 129
Reputation: 218798
You'll want to use the DateDiff function to do the comparison. Something like:
... WHERE DateDiff("n", RecordDate, CurrentDate) <= 90 ...
Upvotes: 3