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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date as a criteria

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
IE
Hi,

I'm running a query that i only want numbers to be returned where the date the number was entered is more than 65 days ago.
My table has 2 fields: Number, Date Entered.


I tried using =[date]-65 in the criteria for the Date Returned Field but no rows were then returned.

Any ideas would be greatly appreciated.


 
Pezamystik ,

unfortunately i also tried that before and it hasn't worked.
Could or how would, i use the datediff function?
 
What i reall want to do is not to have to enter a date at all i.e. no parameters boxes
 
To clarify- in your criteria use...
=datediff("d", [Column Name], Date())=65
 
Just discovered what i'm looking for:
<date()-65
Thanks for helping me get there
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top