Show Birthdays for a particular month

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have read many of the threads in the anniversary sections, but I am only
learning, so can I ask a dumb question ?

Can I retrieve birthdays for a particular month just in the criteria of a
query or do I need to use SQL ?

Question sample: Everyone who's "Birthdate" is in August ? format is
dd/mm/yyyy.

I want to be able to run this for any month.

Thanks and my apologies for my lack of knowledge
 
Create a query into the table that has the BirthDate field.

Drag the fields into the grid that you wish to see (e.g. name and
birthdate).

In a fresh column in the Field row, enter:
TheMonth: Month([BirthDate])

In the Criteria row beneath this, enter:
[Which Month Number?]

When you run the query, Access will pop up a box where you enter a number
between 1 and 12 for the month. The query then shows the birthdays in that
month.
 
Robboj said:
I have read many of the threads in the anniversary sections, but I am only
learning, so can I ask a dumb question ?

Can I retrieve birthdays for a particular month just in the criteria of a
query or do I need to use SQL ?

Question sample: Everyone who's "Birthdate" is in August ? format is
dd/mm/yyyy.

I want to be able to run this for any month.


The quick and dirty way is to use a calculated column in the
query:

BirthMonth: Month(birthdayfield)

and add the criteriaL

[Enter Month Number]
 

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

Similar Threads


Back
Top