JSimoncelli
Registered User.
- Local time
- Yesterday, 22:21
- Joined
- Apr 23, 2012
- Messages
- 73
The Title is a little misleading because I didn’t know how to present it… I created a query based on a table that contains several fields. The fields that drive the query are a date field “PrevInvestDate” and type field “Eligibility”.. The objective was to create a “ReInvestDate” based on the “PrevInvestDate” and “Eligibility”. I created the following formula to create a date based the above factors:
ReInvestDate: IIf([Eligibility]="SCI",DateAdd("yyyy",+5,[PrevInvestDate]),IIf([Eligibility]="TS",DateAdd("yyyy",+5,[PrevInvestDate]),IIf([Eligibility]="S",DateAdd("yyyy",+10,[PrevInvestDate]))))
This works fine, the issue comes in when I try to add criteria of “Between [Start Date] And [End Date]”…
This may a case of the cart before the horse, not sure. I also tries creating a query that performs the date calculation and a second query with the other information (adding the first query to get the calculated date). I then tried the date range criteria and no go…
John....
ReInvestDate: IIf([Eligibility]="SCI",DateAdd("yyyy",+5,[PrevInvestDate]),IIf([Eligibility]="TS",DateAdd("yyyy",+5,[PrevInvestDate]),IIf([Eligibility]="S",DateAdd("yyyy",+10,[PrevInvestDate]))))
This works fine, the issue comes in when I try to add criteria of “Between [Start Date] And [End Date]”…
This may a case of the cart before the horse, not sure. I also tries creating a query that performs the date calculation and a second query with the other information (adding the first query to get the calculated date). I then tried the date range criteria and no go…
John....