L
lindaclark30
I have the undernoted code calculating someone's age in a query. Thi
is based on their age as at Now() however I need it to calculate thei
age as at a certain date (ie the closing date for entries to
competition) can anyone tell me the code i need to replace this -
have tried replacing Now() with the closing date ie 9/4/04 but thi
doesn't work.
Years: IIf(Month(Int(Now()))>Month([Allinfo].[Dob]) O
(Month(Int(Now()))=Month([Allinfo].[Dob]) An
Day(Int(Now()))>Day([Allinfo].[Dob])),Year(Int(Now()))-Year([Allinfo].[Dob]),Year(Int(Now()))-Year([Allinfo].[Dob])-1)
This is probably easy to someone who understands the coding but I a
totally at a loss.
Thanks in advanc
is based on their age as at Now() however I need it to calculate thei
age as at a certain date (ie the closing date for entries to
competition) can anyone tell me the code i need to replace this -
have tried replacing Now() with the closing date ie 9/4/04 but thi
doesn't work.
Years: IIf(Month(Int(Now()))>Month([Allinfo].[Dob]) O
(Month(Int(Now()))=Month([Allinfo].[Dob]) An
Day(Int(Now()))>Day([Allinfo].[Dob])),Year(Int(Now()))-Year([Allinfo].[Dob]),Year(Int(Now()))-Year([Allinfo].[Dob])-1)
This is probably easy to someone who understands the coding but I a
totally at a loss.
Thanks in advanc