Parameter based on Date Field

G

Guest

I have a customer table with a Date of Birth field. I want to be able to
prompt a user to enter a begin and end date to print out birthday letters
based solely on the user entering the begin birth month and day and the end
birth month and day, and not the year. How can this be done?
 
G

Giberish

I have a customer table with a Date of Birth field. I want to be able to
prompt a user to enter a begin and end date to print out birthday letters
based solely on the user entering the begin birth month and day and the end
birth month and day, and not the year. How can this be done?

Have you tried creating a query based on the table with a criteria
such as:

[Enter Start Date] And [Enter End Date]

This would prompt a user to enter both a start date and end date.
 
J

John W. Vinson

The problem is that 5/16/1946 isn't coming this month... it was 61 years ago,
right? <g>

Put a calculated field in a Query by typing

HappyHappy: DateSerial(Year(Date()), Month([DOB]), Day([DOB]))

to get this year's birthday anniversary date. A criterion of

BETWEEN [Enter start date:] AND [ENter end date:]

will let the user enter a date range; a criterion
= Date() AND < DateAdd("ww", 4, Date())

will show all birthdays coming up in the next four weeks.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top