Forum Discussion
MarkShnier__You
Qrew Legend
2 years agoSorry, try this: substitute your field name for date of birth into the first line.
var date MyDate = [DOB];
var number Years = Year(Today())-Year($MyDate) -
If( Month(Today())<Month($MyDate)
or
(Month(Today())=Month($MyDate) and Day(Today())<Day($MyDate)),1,0);
var number Months = If(
Month(Today()) > Month($MyDate), Month(Today()) - Month($MyDate),
Month(Today()) = Month($MyDate) and Day(Today()) >= Day($MyDate), Month(Today()) - Month($MyDate),
Month(Today()) = Month($MyDate) and Day(Today()) < Day($MyDate), 11,
12-(Month($MyDate) - Month(Today())));
$Years * 12 + $Months
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
JenniferDriscol
2 years agoQrew Member
Hi,
I tried Both. The first one said there is a syntax error--parenthesis are mismatched. the 2nd one said that there are extra characters at the end. What in the heck am i doing wrong. I copied and pasted
------------------------------
Jennifer Driscoll
------------------------------
- MarkShnier__You2 years ago
Qrew Legend
I only posted one formula above. That whole thing is one formula. Please use th whole formula and if you have a syntax error, please post a copy and paste of your formula so we can debug it.
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
Related Content
- 4 months ago
- 5 months ago
- 6 months ago
- 3 months ago
- 6 months ago