J
Jian Su
Hi All,
Can anyone tell me how to do a calculation in a query
which will return a rounded number for an age?
I've got a DOB field - dd/mm/yyyy format - and in a query
I've set up I can subtract the DOB from Date() to get a
total number of days difference. I then divide by 365 to
get the years, but this result in a lot of following
decimal places.
In the properties, I tried setting it to General Number,
0 decimal places, but this doesn't work. The result
remains
the same.
How do I get the query to calculate on the Year component
of the DOB and Date() only, OR to return a whole figure
on the entire date?
A simple thing to do, one would think, but "Help" is
anything but... Can't find any relevant examples and
don't have time to learn programming!
Have a good day,
Jian Su
Can anyone tell me how to do a calculation in a query
which will return a rounded number for an age?
I've got a DOB field - dd/mm/yyyy format - and in a query
I've set up I can subtract the DOB from Date() to get a
total number of days difference. I then divide by 365 to
get the years, but this result in a lot of following
decimal places.
In the properties, I tried setting it to General Number,
0 decimal places, but this doesn't work. The result
remains
the same.
How do I get the query to calculate on the Year component
of the DOB and Date() only, OR to return a whole figure
on the entire date?
A simple thing to do, one would think, but "Help" is
anything but... Can't find any relevant examples and
don't have time to learn programming!
Have a good day,
Jian Su