Nathaniel_613
Nathaniel_613

Reputation: 179

Function / criteria to give me records from the last 90 minutes

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

Answers (1)

David
David

Reputation: 218798

You'll want to use the DateDiff function to do the comparison. Something like:

... WHERE DateDiff("n", RecordDate, CurrentDate) <= 90 ...

Upvotes: 3

Related Questions