G
Guest
Hi,
I am not a programmer and am fumbling my way through building a database. I
have created a query based on a table which has a 'date of birth' field. I
would like to use the expression builder to group the data into age
categories such as < 25, 25-30,30-40 etc. In the past, I have used;
iif(
![dob] is between [date] and [date],"<25",etc etc. This method is
not effective because as time progresses, the dates have to be change. I
realise I could also manually put the dates in everytime I run the query, but
this also is laboursome. Is there away to get the system to recognise that I
want the current day, current month and then hardcode the year into it so
that it automatically calculates ? Hope someone can help.
Thanks !!
I am not a programmer and am fumbling my way through building a database. I
have created a query based on a table which has a 'date of birth' field. I
would like to use the expression builder to group the data into age
categories such as < 25, 25-30,30-40 etc. In the past, I have used;
iif(
not effective because as time progresses, the dates have to be change. I
realise I could also manually put the dates in everytime I run the query, but
this also is laboursome. Is there away to get the system to recognise that I
want the current day, current month and then hardcode the year into it so
that it automatically calculates ? Hope someone can help.
Thanks !!