Do you really need to include the day in your criteria? If you are interested
in a listing of all birthdays in a given month, then I would think you would
not want to include a day criteria. But yes, you can include a day criteria
if you really want to and ignore the year as well.
I think Al Campagna's suggestion to use the Month function is what will
likely work out best for you. You could create a form that includes a combo
box as a part of this functionality. The Row Source for the combo box could
be a Value List, along the lines of:
1, "January"; 2, "February"; 3, "March"; .....12, "December"
with column count = 2 and bound column = 1.
Your query could then pick up the criteria from this combo box:
Field: Month(BirthDate)
Criteria: Forms!NameOfForm!NameOfComboBox
Perhaps this example will be helpful. This zipped sample includes a Word
document written by Michael Hernandez, along with a small test database:
http://www.accessmvp.com/TWickerath/...mdialogbox.zip
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
"Jennifer" wrote:
> Can I query for just the month/day? and leave the year in the table. We
> have over 2000 people entered and several people that input the data so
> looking for the easiest/quickest solution.
>
> "Tom Wickerath" wrote:
>
> > Hi Jennifer,
> >
> > If the field you are using is a Date/Time data type, then this will include
> > the year--there is no getting around that. One way to accomplish your goal is
> > to enter the person's actual birth date, for example 14-Feb-1968. Then, it
> > would be relatively easy to query for a birthday list for a given month.
> >
> > The alternative, if you do not wish to store the year, is to change the data
> > type to Text. This will require being consistent when querying the data, for
> > example entering or not entering leading zeros, and the order mm/dd versus
> > dd/mm. Really, the easiest method is to enter the actual birth dates if you
> > have these available. This will allow you to easily calculate age at any
> > given time, as well as produce a birthday list for a given month.
> >
> >
> > Tom Wickerath
> > Microsoft Access MVP
> > http://www.accessmvp.com/TWickerath/
> > __________________________________________
> >
> > "Jennifer" wrote:
> >
> > > We track birthdays with month/date but do not track the year. When we input
> > > into the form it is mm/dd only but going into the table it automatically puts
> > > the current year. Now trying to run a birthday list for January 2010 no
> > > birthdays are showing up. How can I either change the year or just have
> > > mm/dd in my table?