Skip to main content
Known Participant
April 17, 2006
Answered

Selecting Records Older Than 90 Days

Can someone tell me an efficient way to select all records that are older then 90 days? I have a field named PostedDate which is the date the record was created. I'm using MS Access.

Thank you!
This topic is closed to new replies. Start a new post to keep the conversation going.
LL20_2Correct answer
Participating Frequently
April 17, 2006
This code:
<cfquery name="Myquery" datasource="cfdocexamples">
Select * from employee where startdate < #now()#-90
</cfquery>

Translates to this:

Select * from employee where startdate < 01/17/2006

1 reply

LL20_2Correct answer
Participating Frequently
April 17, 2006
This code:
<cfquery name="Myquery" datasource="cfdocexamples">
Select * from employee where startdate < #now()#-90
</cfquery>

Translates to this:

Select * from employee where startdate < 01/17/2006

Translate