Formulas

M

MaRSMAN

YrsMarried:
Abs(DateDiff("yyyy",[MarriageDate],Date())+(Format(Date(),"mmdd")<Format([MarriageDate],"mmdd")))

The above formula works fine I just need to include an IIF in it.
I need the formula to also calculate the YrsMarried when the MarriagedEnded
fld is updated to 1/31/2005 The IIF part of the formula
MarriageDate MarriageEnded
5/31/1975 Yrs Married 33
When Updated 1/31/2005 YrsMarried 30
Thanks
 
M

MaRSMAN

Thanks Worked perfect just had to add a closing Parenecy at the end of the
formula
Wish I was as smart as you

Allen Browne said:
Replace Date() with:
Nz([MarriageEnded], Date())

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.
MaRSMAN said:
YrsMarried:
Abs(DateDiff("yyyy",[MarriageDate],Date())+(Format(Date(),"mmdd")<Format([MarriageDate],"mmdd")))

The above formula works fine I just need to include an IIF in it.
I need the formula to also calculate the YrsMarried when the
MarriagedEnded
fld is updated to 1/31/2005 The IIF part of the formula
MarriageDate MarriageEnded
5/31/1975 Yrs Married 33
When Updated 1/31/2005 YrsMarried 30
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top