Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Getting Started > #error in calcu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 16802 of 17622
Post > Topic >>

#error in calculate age

by "Song" <songsu@[EMAIL PROTECTED] > Jul 26, 2008 at 03:58 PM

I have a field [DOB] for date of birth. Some records are blank in this 
field. If non-blank, I want to calculate age, otherwise, blank as follows:

=IIf(IsNull([DOB]),"",DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd"))

& " Yrs")

Record with DOB field is calculated correct age. DOB blank still gives me 
#Error.  Which part did I do wrong? Thanks.
 




 5 Posts in Topic:
#error in calculate age
"Song" <song  2008-07-26 15:58:58 
Re: #error in calculate age
John W. Vinson/MVP <pl  2008-07-26 19:51:33 
Re: #error in calculate age
"Song" <song  2008-07-27 08:01:35 
Re: #error in calculate age
John Spencer <spencer@  2008-07-27 13:55:06 
Re: #error in calculate age
"Song" <song  2008-07-27 12:45:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:36:43 CST 2008.