Access and Dates

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

BTex

Thread Starter
Joined
May 10, 2002
Messages
564
I am working on a query , and I need to calculate age from birth dates.
if I use this Age: Year(Now())-Year([BIRTHDATE])

It works but I need it from a specific date not NOW

any help would be appreciated

Randy
 
Joined
Jul 29, 2001
Messages
21,334
How do you want to bring that date in? From a text box on a form?
 

BTex

Thread Starter
Joined
May 10, 2002
Messages
564
The actual birth date is already apart of the query. I just added another column with the

Age: Year(Now())-Year([BIRTHDATE])

and it works, I just want the NOW changed to 10/27/2011 So I can calculate age at a cut off date

make sense? i may have confused myself
 
Joined
Jul 29, 2001
Messages
21,334
Just add the date you want in there enclosed in # in place of now. You could also have it prompt you for a date. The YEAR function however will make your date 2011 not 10/27/2011
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top