jennifer21277
MIS
Hi All,
I am trying to set up a process that will query for any person who turns age 65 during a specific quarter. This process will be used in the future, so I want to automate the task. Currently, in the criteria I use the following DatePart expresssion: Int(DateDiff('d',[BIRTH_DTE],Now())/365.25)=65. This is almost accurate. If I were to run this query today, the results would include anyone born between 3/20/1938 and 3/19/1939, but in actuality, I would only want those who are born between 1/1/1939 and 3/31/1939. In order for this work properly, the query would have to be run on the last day of the quarter. This may not always be possible, therefore I would like the person who will run this report to be able to enter the date range for the quarter as a parameter where the results will include all those who have a birth date in that quarter and will turn age 65 for the current year. Is this at all possible? Thanks in advance for any assistance you offer.
I am trying to set up a process that will query for any person who turns age 65 during a specific quarter. This process will be used in the future, so I want to automate the task. Currently, in the criteria I use the following DatePart expresssion: Int(DateDiff('d',[BIRTH_DTE],Now())/365.25)=65. This is almost accurate. If I were to run this query today, the results would include anyone born between 3/20/1938 and 3/19/1939, but in actuality, I would only want those who are born between 1/1/1939 and 3/31/1939. In order for this work properly, the query would have to be run on the last day of the quarter. This may not always be possible, therefore I would like the person who will run this report to be able to enter the date range for the quarter as a parameter where the results will include all those who have a birth date in that quarter and will turn age 65 for the current year. Is this at all possible? Thanks in advance for any assistance you offer.