Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSQuery date criteria using 'today's' date

Status
Not open for further replies.

LinsayPatterson

IS-IT--Management
May 7, 2020
2
AU
I've been following a previous (now closed) thread on this & see there was not a conclusive solution.

For returning the date using MSQuery:

>=GetDate()


For returning today minus 65 days use:

>=(GetDate())-65
 
Hi,

Welcome from Up Over (Texas) to Down Under! My mate is my wife and my knife is not so big.

Do you have a question?

Just an observation on returning today's date. It all depends on the database you are accessing. So if you have a question, please include the database you are tapping.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
 
On further inspection I found some issues with that previous code & found this one is much better:

>=current_date()-62
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top