DJ-Specter
Registered User.
- Local time
- Today, 19:06
- Joined
- Sep 19, 2009
- Messages
- 21
Hi, I want to update all records with a birth date listed to have an age in a separate 'age' field. I have got the hang of the datediff function but i can't seem to get it to work in an update query.
I need the query to search for all records that have a birth date listed which i have done using an 'is not null' statement as you can see in the 'query criteria' screenshot. the same query needs to then use all those records to calculate the age of the person using the datediff function. however after clicking run, i just get a load of blank records in an age column as shown in the 'query results' screenshot.
i'm certain that access can do what i need it to do, its just that i'm not asking it in the right way.
any ideas are welcomed. cheers
I need the query to search for all records that have a birth date listed which i have done using an 'is not null' statement as you can see in the 'query criteria' screenshot. the same query needs to then use all those records to calculate the age of the person using the datediff function. however after clicking run, i just get a load of blank records in an age column as shown in the 'query results' screenshot.
i'm certain that access can do what i need it to do, its just that i'm not asking it in the right way.
any ideas are welcomed. cheers