query month and year only

  • Thread starter Thread starter LKnomad
  • Start date Start date
L

LKnomad

Hi,

I need to pull records into a drop down menu based on the month and the
year. To clarify: I have a date field formatted as 2/21/05. I need
to query the month and years that exist in my table. For example I
might have two entries for feb 05 - 2/4/05 and 2/8/05. I need to have
one feb 05 in my drop down menu without the days.

Anyone have any ideas??

Thanks

Laura K
 
select distinct month(datefield) & year(datefield) from thetable will
achieve that part of your problem....

HTH

Pieter
 
Thanks for the reply,

The formatting works and displays as month and year. I still have the
problem of multiple month and year combos. The actual dates are
different so they can not be grouped by using distinct. However the
month and year combos are the same. how do I get access to show only
one of each month and year combo?

Thanks
Laura K
 

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

Month/Year Format 3
date range query between 2 tables 2
Sorting Month-Year in Query 7
How to use Dlookup function 2
Date input mask 1
2 dimensional date sort 1
HELP: Duplicating Entries 12
Query Using Time 2

Back
Top