I need to report spouse age on my report.
I have a table named tbl_ClDependant that has fields BirhtDate (Yes I know its spelled wrong, I didn't do it) and Relationship. Values for the Relationship feild are SPOU for spouse and anything else equals a child.
I also have a working age calculation formula I named Dep Age:
(if Month ({tbl_ClDependant.BirhtDate}) < Month (CurrentDate) or
(Month ({tbl_ClDependant.BirhtDate}) = Month (CurrentDate) and
Day ({tbl_ClDependant.BirhtDate}) <= Day (CurrentDate))
then Year (CurrentDate) - Year ({tbl_ClDependant.BirhtDate})
else (Year(CurrentDate) - Year({tbl_ClDependant.BirhtDate}))-1)
So I would need to Select Dep Age where tbl_ClDependant.Relationship = "SPOU" but I can't seem to get it to work.
Thanks
I have a table named tbl_ClDependant that has fields BirhtDate (Yes I know its spelled wrong, I didn't do it) and Relationship. Values for the Relationship feild are SPOU for spouse and anything else equals a child.
I also have a working age calculation formula I named Dep Age:
(if Month ({tbl_ClDependant.BirhtDate}) < Month (CurrentDate) or
(Month ({tbl_ClDependant.BirhtDate}) = Month (CurrentDate) and
Day ({tbl_ClDependant.BirhtDate}) <= Day (CurrentDate))
then Year (CurrentDate) - Year ({tbl_ClDependant.BirhtDate})
else (Year(CurrentDate) - Year({tbl_ClDependant.BirhtDate}))-1)
So I would need to Select Dep Age where tbl_ClDependant.Relationship = "SPOU" but I can't seem to get it to work.
Thanks