Hi,
i'm having problems getting a simple date calculation to work,
all i need is to subtract a DateOfBirth field from NOW()
and produce an age e.g. 08/01/1988 would produce 20
I'm doing this in the Exit event of the DateOfBirth field which populates the Age Field. The Age field is a number whilst the DateOfBirth is an age.
i've been messing with formatdatetime(), Dateserial(), datediff() FormatDateTime().
I can get it to calculate but it isn't accurate to the day only the year,
DateDiff is kicking up 'invalid procedure call'
I really can't work this out
thanks
i'm having problems getting a simple date calculation to work,
all i need is to subtract a DateOfBirth field from NOW()
and produce an age e.g. 08/01/1988 would produce 20
I'm doing this in the Exit event of the DateOfBirth field which populates the Age Field. The Age field is a number whilst the DateOfBirth is an age.
i've been messing with formatdatetime(), Dateserial(), datediff() FormatDateTime().
I can get it to calculate but it isn't accurate to the day only the year,
DateDiff is kicking up 'invalid procedure call'
I really can't work this out
thanks