ImLost
Registered User.
- Local time
- Yesterday, 22:04
- Joined
- Nov 16, 2005
- Messages
- 44
Hello -
I know there are a ton of threads about age, and I did read through several, but the most common answer isn't working. Everyone here has been extremely helpful in the past, so I'm hoping you can help me here. ^_^
I have two update queries to return a person's age at the beginning of a quarter and at the end of the quarter. The end query works just fine, but the beginning one isn't returning the correct values.
For the end query, I have:
DateDiff("yyyy",[DOB],Forms!ReportMenu!Text28)+Int(Format(Forms!ReportMenu!Text28,"mmdd")<Format([dob],"mmdd"))
(where text28 is the box on my form that contains the end date)
For the beginning query, I have:
DateDiff("yyyy",[DOB],Forms!ReportMenu!Text26)+Int(Format(Forms!ReportMenu!Text268,"mmdd")<Format([dob],"mmdd"))
(where text26 contains the begin date)
What caught my eye in particular is someone whose DOB is 01/08/91 with a begin date of 10/01/08 and an end date of 12/31/08. The end date is correctly recognizing him as 17, but the begin date is making him 16, when he turned 18 after the quarter ended.
Any ideas?
I know there are a ton of threads about age, and I did read through several, but the most common answer isn't working. Everyone here has been extremely helpful in the past, so I'm hoping you can help me here. ^_^
I have two update queries to return a person's age at the beginning of a quarter and at the end of the quarter. The end query works just fine, but the beginning one isn't returning the correct values.
For the end query, I have:
DateDiff("yyyy",[DOB],Forms!ReportMenu!Text28)+Int(Format(Forms!ReportMenu!Text28,"mmdd")<Format([dob],"mmdd"))
(where text28 is the box on my form that contains the end date)
For the beginning query, I have:
DateDiff("yyyy",[DOB],Forms!ReportMenu!Text26)+Int(Format(Forms!ReportMenu!Text268,"mmdd")<Format([dob],"mmdd"))
(where text26 contains the begin date)
What caught my eye in particular is someone whose DOB is 01/08/91 with a begin date of 10/01/08 and an end date of 12/31/08. The end date is correctly recognizing him as 17, but the begin date is making him 16, when he turned 18 after the quarter ended.
Any ideas?