M
Mary
The following is my sql view of a query I have put together to return the
year of a member's 100th birthday. My assignment is to generate a report for
those who are turning 100 between and including 2009 to 2013. I am able to
get as far as calculating the year each member turns 100, but am having
difficulty in limiting the results to 2009-2013. Your help is very much
appreciated.
SELECT tblCustomerAddresses.IndexName, tblCustomerAddresses.CustomerType,
tblPermanentRecordInformation.BirthDate,
DateSerial(Year([BirthDate])+100,Month([BirthDate]),Day([BirthDate])) AS
100thBirthday, DatePart("yyyy",[100thBirthday]) AS 100thYear
FROM tblPermanentRecordInformation INNER JOIN tblCustomerAddresses ON
tblPermanentRecordInformation.[ID Number]=tblCustomerAddresses.[ID Number]
WHERE (((tblCustomerAddresses.CustomerType)="Sister"))
ORDER BY
DateSerial(Year([BirthDate])+100,Month([BirthDate]),Day([BirthDate]));
year of a member's 100th birthday. My assignment is to generate a report for
those who are turning 100 between and including 2009 to 2013. I am able to
get as far as calculating the year each member turns 100, but am having
difficulty in limiting the results to 2009-2013. Your help is very much
appreciated.
SELECT tblCustomerAddresses.IndexName, tblCustomerAddresses.CustomerType,
tblPermanentRecordInformation.BirthDate,
DateSerial(Year([BirthDate])+100,Month([BirthDate]),Day([BirthDate])) AS
100thBirthday, DatePart("yyyy",[100thBirthday]) AS 100thYear
FROM tblPermanentRecordInformation INNER JOIN tblCustomerAddresses ON
tblPermanentRecordInformation.[ID Number]=tblCustomerAddresses.[ID Number]
WHERE (((tblCustomerAddresses.CustomerType)="Sister"))
ORDER BY
DateSerial(Year([BirthDate])+100,Month([BirthDate]),Day([BirthDate]));