BlueStarBrite
Registered User.
- Local time
- Today, 17:12
- Joined
- Jan 15, 2009
- Messages
- 23
Ok, so I need help figuring out a DateDiff/DateAdd solution. I have been searching the forum but havent come across exactly what I need.
I have 3 main variables that I want to use in my calculation: 1)Today's date 2)ApprovalDate 3)ExpirationDate
I know how to calculate 90 days prior to the Expiration date:
DateAdd ("d",-90,[ExpirationDate])
My problem is: I want to query for all people in the database whose expiration date is 90 days prior to their ApprovalDate based on today's date. Make sense
In other words, when I run the query for 'today', pull a list where expiration date is 90 days out.
After researching, I am thinking I need to use the DateDiff function. However, I tried several versions, and can't quite get it to return the results I want. (Ex I have tried: DateDiff("d",Date(), ExpirationDate - ApprovalDate = 90)
I will be using this query for a report as well as a form that I want to trigger as a 'reminder list'
Please let me know where I am going wrong. TIA
I have 3 main variables that I want to use in my calculation: 1)Today's date 2)ApprovalDate 3)ExpirationDate
I know how to calculate 90 days prior to the Expiration date:
DateAdd ("d",-90,[ExpirationDate])
My problem is: I want to query for all people in the database whose expiration date is 90 days prior to their ApprovalDate based on today's date. Make sense
After researching, I am thinking I need to use the DateDiff function. However, I tried several versions, and can't quite get it to return the results I want. (Ex I have tried: DateDiff("d",Date(), ExpirationDate - ApprovalDate = 90)
I will be using this query for a report as well as a form that I want to trigger as a 'reminder list'
Please let me know where I am going wrong. TIA