i am using DateDiff to display difference between to dates , but it does not work.
1)-using vba code (after/before update ) event does not work.
2)-using unbound control source gives me error "the expression you entered has a function containing wrong number of arguments"
i am using this control source
=IIf (IsNull([startdate]) - "" - DateDiff("m" - [enddate] - [startdate]) + 1)
and i even used this
=DateDiff("m" - [enddate] - [startdate]) + 1
but gives me same error.
what am i doing wrong.
the file is attached.
Plz help.
1)-using vba code (after/before update ) event does not work.
2)-using unbound control source gives me error "the expression you entered has a function containing wrong number of arguments"
i am using this control source
=IIf (IsNull([startdate]) - "" - DateDiff("m" - [enddate] - [startdate]) + 1)
and i even used this
=DateDiff("m" - [enddate] - [startdate]) + 1
but gives me same error.
what am i doing wrong.
the file is attached.
Plz help.