Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2006

Tip: Looking for answers? Try searching our database.

Finding Dates in future

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dgwood90 - 29 May 2006 17:05 GMT
I am trying to find experation dates of products  in a 90 day window.  ie, if
product expires 06/30/06 it will show, if product expires 10/30/06, it will
not show.  I have tries the following with no luck, they both show all dates.
>=Date() And >DateAdd("d",Date(),90) and >= DateAdd("d,90,Date())
John Spencer - 29 May 2006 18:08 GMT
Field: YourField
Criteria: Between Date() and DateAdd("d",90,Date())

The above should work.

Criteria: >=Date() And <= DateAdd("d",Date(),90)
Should also work.  Your posted criteria used Greater than for the second  part
of the criteria.

> I am trying to find experation dates of products  in a 90 day window.  ie, if
> product expires 06/30/06 it will show, if product expires 10/30/06, it will
> not show.  I have tries the following with no luck, they both show all dates.
> >=Date() And >DateAdd("d",Date(),90) and >= DateAdd("d,90,Date())
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.