Access query

B

bcc

I need to create a report based on a query. It's a birthday list.
Unfortunately, the dates include the year which I can't publish. How can I
setup the database so that the query will pull birthdays by the month and
show only dd/mm? I'm a rookie so I need a lot of help.
 
J

John W. Vinson

I need to create a report based on a query. It's a birthday list.
Unfortunately, the dates include the year which I can't publish. How can I
setup the database so that the query will pull birthdays by the month and
show only dd/mm? I'm a rookie so I need a lot of help.

Create a query based on the table, In a vacant Field cell type

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

where DOB is the date of birth field in your table. Leave DOB out of the query
otherwise.

You can display this date using any format you wish, and use criteria such as

BETWEEN Date() AND Date() + 7

to get all the birthdays during the next week.
 

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