Assuming you mean that anything more than 10 years, try:
IIf(DateAdd("yyyy", -10, Date()) > Nz([cdDateOfBirth], #1/1/100#), "",
???)
??? means I'm not sure what you want if the age is less than 10. I have no
idea what your funCalcAge is supposed to be doing.
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Bob said:
Thanks Douglas great, can this script be slightly altered so as anything
my than 10 years returns a Blank "" no result
=IIf([cbDateOfBirth]="" Or
IsNull([cbDateOfBirth]),"",funCalcAge(Format("01-Aug-" &
[cbDateOfBirth],"dd/mm/yyyy"),Format(Now(),"dd/mm/yyyy"),1))
Taking your question at face value:
Me.MyTextBox = "[cbStatus]=""Finished"" This text box to be Blank"
(replace MyTextBox with the actual name of your text box)
If that's not what you mean, post back with a better explanation.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
This is what I would like added to my textbox:
[cbStatus]="Finished" This text box to be Blank
Thanks in advance.........Bob Vance