473,498 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to calculate a persons age on 31 Dec every year?

547 Contributor
I need to determine the age of the persons in my tblcyclistdetail, as on the 31st December every year. The age of the person will therefore only change once per year on the system, and that's on January 1. It must not change if his birthdate is on any other date and is therefore the maximum age of a person for the year.
form = frmcyclistdetail
relevant fields = Birthdate; age
table = tblcyclistdetail

thx
Neels
Oct 1 '10 #1
3 1920
nico5038
3,080 Recognized Expert Specialist
Just use dateserial(year(Date()),12,31) to subtract the DayOfBirth from.

Nic;o)
Oct 1 '10 #2
neelsfer
547 Contributor
thx nico for prompt reply
Oct 1 '10 #3
neelsfer
547 Contributor
got it right
=Format(DateSerial(Year(Date()),12,31)-[Birthdate],'yy')
thx
Nico
Oct 1 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
1895
by: recumbent4sale | last post by:
I work in a non-profit where people are quite computer illiterate and have always created new files every year. I know that making new tables/db's is usually a bad idea, particularly for saving...
3
2937
by: cassey14 | last post by:
Hi Guys... Im doing a system and it really make my head ache..i hope somebody help me.. I need to have an id like this "ABCD-07-000001"... I dont know how will I work on that thing.. ABCD...
3
1215
by: anvidc | last post by:
Hi, i have a from as below. i need to do a calculation for the total no. for day taken for the year selected on start date. http://aycu38.webshots.com/image/30517/2004894652881267885_fs.jpg ...
37
14892
by: mazwolfe | last post by:
I'm new here, so excuse me if my style is incorrect. Can anyone come up with a better method for this calculation? Code: int is_leap(int year) { switch (year % 19) { case 0: case 3: case 6:...
2
3999
by: johanneguaybenoit | last post by:
Hi I would like to know how to create a function or module to calculate the age of a person in years months days. and hours if feasable But I really nead to know in years months days. I...
0
7002
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...
1
6885
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
7379
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
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
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...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.