Query by month

M

Mellstock

Is there a way to query by month. For example show me all the invoices
for work carried out in November 2006 or any other month for that
matter.

Currently I am using a parameter query and entering a start and a
finish date.

Thank you
 
K

Ken Snell \(MVP\)

How do you want to identify a month -- by name only, by a month and year,
etc.?

Assuming that you want a month and year, one "easy" way of doing this is a
query that looks like this:

SELECT * FROM TableName
WHERE Month([DateFieldName]) = [Enter month number:] AND
Year([DateFieldName]) = [Enter year (yyyy):];
 

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