I have a field in my query that shows:
#months: IIf([mandate_state]='FL',DateDiff('m',#11/1/2003#,[RGExpDate]),DateDiff('m',#8/1/2003#,[RGExpDate]))
I want to add some more criteria to this. I have a field called cancel_date. I want to also say IF [cancel_date] is not null and [cancel_date]<[RGExpDate], then do DateDiff('m',#11/1/2003#,[cancel_date],DateDiff('m',#8/1/2003#,[cancel_date]).
So if the cancel date is not null, then subtract the datediffs by cancel date, but if the cancel date is null, then use the RGExpDate. Does this make sense? Any help is welcomed! thanks.
#months: IIf([mandate_state]='FL',DateDiff('m',#11/1/2003#,[RGExpDate]),DateDiff('m',#8/1/2003#,[RGExpDate]))
I want to add some more criteria to this. I have a field called cancel_date. I want to also say IF [cancel_date] is not null and [cancel_date]<[RGExpDate], then do DateDiff('m',#11/1/2003#,[cancel_date],DateDiff('m',#8/1/2003#,[cancel_date]).
So if the cancel date is not null, then subtract the datediffs by cancel date, but if the cancel date is null, then use the RGExpDate. Does this make sense? Any help is welcomed! thanks.