473,414 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Calculated field with age

I've searched google but can't find what I need.
In my form I have a field Date Of Birth. Netxt to that field I would like to
put a calculated field that shows the age of that particular person,
calculated from today.
What's the easiest way of doing this?
Thanks in advance,
john
Aug 26 '06 #1
4 3257

"john" <jo**@test.comschreef in bericht news:T8********************@casema.nl...
I've searched google but can't find what I need.
?????
How did you search ?? This question has been asked and answered lots of times...

http://groups.google.com/group/comp....ulation&qt_g=1

Arno R
Aug 26 '06 #2
"john" <jo**@test.comwrote in
news:T8********************@casema.nl:
I've searched google but can't find what I need.
In my form I have a field Date Of Birth. Netxt to that field I
would like to put a calculated field that shows the age of
that particular person, calculated from today.
What's the easiest way of doing this?
Thanks in advance,
john
age = datediff("yyyy",dob,date())
for a more accurate age, use the reknowned Allen Browne's age()
function which handles a subtle error in the expression I wrote
above. It also lets you specify a date different from today if you
need to.
http://allenbrowne.com/func-08.html
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 26 '06 #3
I found so many pages on 'access age calculated field', but not the one I
was looking for.
john

"Arno R" <ar***********@tiscali.nlschreef in bericht
news:44**********************@text.nova.planet.nl. ..

"john" <jo**@test.comschreef in bericht
news:T8********************@casema.nl...
I've searched google but can't find what I need.
?????
How did you search ?? This question has been asked and answered lots of
times...

http://groups.google.com/group/comp....ulation&qt_g=1

Arno R
Aug 26 '06 #4
"Bob Quintal" <rq******@sPAmpatico.caschreef in bericht
news:Xn**********************@66.150.105.47...
"john" <jo**@test.comwrote in
news:T8********************@casema.nl:
>I've searched google but can't find what I need.
In my form I have a field Date Of Birth. Netxt to that field I
would like to put a calculated field that shows the age of
that particular person, calculated from today.
What's the easiest way of doing this?
Thanks in advance,
john

age = datediff("yyyy",dob,date())
for a more accurate age, use the reknowned Allen Browne's age()
function which handles a subtle error in the expression I wrote
above. It also lets you specify a date different from today if you
need to.
http://allenbrowne.com/func-08.html
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com
Thanks!
john
Aug 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Norbert Lieckfeldt | last post by:
MS Access 2002 here. I am just trying to set up a simple database for a friend who's an optician. Basically, all clients with address details, date of last eyetest and a drop-down combo box to...
2
by: hhathome | last post by:
In my report I have a calculated DateDiff Field, I also have a calculated count field. I'm trying to get a total of the DateDiff field and dividing it by the count field and I'm having problems --...
2
by: markm75c | last post by:
Does anyone know of a way to sort a column which isnt databound or an actual field in the database, but is derived from a method? IE. I have a grid showing stats for softball, with a calculated...
2
by: ey.markov | last post by:
Greetings, in A2K VBA, I set the following recordset: Set rsGPValue = dbs.OpenRecordset("SELECT *, DateSerial(Year(),Month()+4,0) FROM tblGPValue AS OurDate, dbOpenSnapshot) and then I try...
3
by: kelley.l.turner | last post by:
Hi all, I am very new to MS Access so please bear with me! I have created a simple calculated field in my data entry form, yet when I view my data table or try to generate a report based on...
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes the trip in three phases: 1. A custom public...
2
by: jcf378 | last post by:
hi all. I have a form which contains a calculated control ("days") that outputs the # of days between two dates (DateDiff command between the fields and ). However, when I click "Filter by...
9
by: Haas C | last post by:
Hi all! Is there anyway I can override a value in a calculated field on a form? For example: I have a form which displays the following fields based on a query: Premium Due field has the...
3
by: Matthew Wells | last post by:
If I have a calculated field that returns a value from a udf, does that field get calculated even when it's not being used in a Select statement? I knw that if a calculated field's formula is...
2
by: mkbrady | last post by:
I have a query that includes calculated fields that generate numeric results. I have wrapped conversion functions CLng() and CDdl() around the calculated fields to ensure the data types are...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.