By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

Query Results of Age less than 1 year?

P: n/a
I'm using MS Access 97. This is the formula that I'm using in a query
to calculate the age of a client:

Client Age: Int(DateDiff("m",[tblgloclients]![Client DOB],Date())/12)

If the age is under 1 year, I get 0. How can I get the number of
months when this is the case? Thanks.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Doug Steele has a more complete DateDiff() function at:
http://members.rogers.com/douglas.j....iff2Dates.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Lucinda Roebuck" <lu*************@ncmail.net> wrote in message
news:a2**************************@posting.google.c om...
I'm using MS Access 97. This is the formula that I'm using in a query
to calculate the age of a client:

Client Age: Int(DateDiff("m",[tblgloclients]![Client DOB],Date())/12)

If the age is under 1 year, I get 0. How can I get the number of
months when this is the case? Thanks.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.