Tebbott
12-03-2008, 02:49 PM
Hi there,
this one should be pretty simple for alot of you but i've been tearing my hair out for a good hour now trying to find the solution online. Basically my problem is this:
I have two fields in my table, startdate and enddate. I need to calculate the number of years between the two dates. I have done this using YearsService: DateDiff("yyyy",[StartDate],[EndDate]).
All working fine, however if there is no EndDate present then no value is displayed. How can i add an extra part to this expression that says, if there is no end date present, use todays date.
Regards
Tebbott
this one should be pretty simple for alot of you but i've been tearing my hair out for a good hour now trying to find the solution online. Basically my problem is this:
I have two fields in my table, startdate and enddate. I need to calculate the number of years between the two dates. I have done this using YearsService: DateDiff("yyyy",[StartDate],[EndDate]).
All working fine, however if there is no EndDate present then no value is displayed. How can i add an extra part to this expression that says, if there is no end date present, use todays date.
Regards
Tebbott