I need to produce a report that shows forthcoming birthdays, based on the sample Membership application. Given the Birthdate in the 'members' table, how do I find birthdays for (say) 20-30 days from today?
So far I have created a report (see below) which calculates the birthdays for this year and next year, using criteria to select the appropriate range. The report shows both derived birthday fields however, rather than just the relevant one as I require.
Any suggestions to 'fix' this report, or for better approaches, would be very welcome.
Thanks ...
Richard Prosser
------------------- Report ----------------
Field: Birthday1: DateValue(Day([Birthdate]) & "/" & Month([Birthdate]) & "/" & Year(Date()))
Criteria: Between Date() And Date()+30
Field: Birthday2: DateValue(Day([Birthdate]) & "/" & Month([Birthdate]) & "/" & Year(Date())+1)
Criteria: Between Date() And Date()+30
So far I have created a report (see below) which calculates the birthdays for this year and next year, using criteria to select the appropriate range. The report shows both derived birthday fields however, rather than just the relevant one as I require.
Any suggestions to 'fix' this report, or for better approaches, would be very welcome.
Thanks ...
Richard Prosser
------------------- Report ----------------
Field: Birthday1: DateValue(Day([Birthdate]) & "/" & Month([Birthdate]) & "/" & Year(Date()))
Criteria: Between Date() And Date()+30
Field: Birthday2: DateValue(Day([Birthdate]) & "/" & Month([Birthdate]) & "/" & Year(Date())+1)
Criteria: Between Date() And Date()+30