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!

Determining 90 days prior to a specific day

Status
Not open for further replies.

otiswade

IS-IT--Management
Nov 6, 2003
2
US
My database contains: TrainDate and ExpireDate. I need a report that details personnel that are within 90 days of their expiration date.
 
You did not define what would make someone within 90 days of their expiration date. Do you mean the current date is within 90 days of the expiration date?


Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
My apologies. Yes, current date is within 90 days of the individuals expiration date.
 
to get all records where the exiration date in in the next 90 days, write a formula:

{Expiredate} in CurrentDate to Dateadd("d",90,Currentdate)

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Another approach would be to use the DateDiff function.
Code:
DateDiff("d", CurrentDate, {ExpireDate}) IN 0 to 90


~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top