F
frankerin
Hello
I am using access 2003. A query field I have been using for several years
contains the following code in order to keep a current age in reports. I has
always worked.
AGE:
Year(Now())-Year([birth])+(DateSerial(Year(Now()),Month([birth]),Day([birth]))>Now())
I have tested the function in the same query as a separate field expr1 etc.
Day([birth]) works, year([birth])works. Why not month([birth]) suddenly?
Now "month([birth]) is undefined and it is so in several other queries which
use this function. [birth] is a complete birthday, eg 12/25/200?
No references appear to be missing at least according to Allen Brown's list.
I really need to solve this as these reports are always in demand.
How would you proceed? I would be very grateful
I am using access 2003. A query field I have been using for several years
contains the following code in order to keep a current age in reports. I has
always worked.
AGE:
Year(Now())-Year([birth])+(DateSerial(Year(Now()),Month([birth]),Day([birth]))>Now())
I have tested the function in the same query as a separate field expr1 etc.
Day([birth]) works, year([birth])works. Why not month([birth]) suddenly?
Now "month([birth]) is undefined and it is so in several other queries which
use this function. [birth] is a complete birthday, eg 12/25/200?
No references appear to be missing at least according to Allen Brown's list.
I really need to solve this as these reports are always in demand.
How would you proceed? I would be very grateful