I have an option group with 2 checkboxes :
MtbAge - option value = 1
RoadAge - option value = 2
The textbox where to display MtbAge/RoadAge is called = currentage
if you select MtbAge it must use
to calculate
if you select RoadAge it must use
to calculate
Anybody out there that has an idea how to do this please? See attached screen pic
** Edit **
[imgnothumb]http://bytes.com/attachments/attachment/4513d1294394815/checkbox1.jpg[/imgnothumb]
MtbAge - option value = 1
RoadAge - option value = 2
The textbox where to display MtbAge/RoadAge is called = currentage
if you select MtbAge it must use
Code:
=Format(DateSerial(Year(Date()),12,31)-[Birthdate],'yy')
if you select RoadAge it must use
Code:
=DateDiff("yyyy",[Birthdate],Now())+Int(Format(Now(),"mmdd")<Format([Birthdate],"mmdd"))
Anybody out there that has an idea how to do this please? See attached screen pic
** Edit **
[imgnothumb]http://bytes.com/attachments/attachment/4513d1294394815/checkbox1.jpg[/imgnothumb]
Comment