Date Range Selection

T

T Miller

If I have a date column in a table and I only want to see march thru june,
can I do this in a table or does it have to be done in a query?
 
J

Jeff Boyce

Thomas

You could use a filter and the "Between ... And ..." criterion/function, but
then you'd still be in the table. Access tables store data, Access queries
retrieve/show data (and give you better control).

By the way, if you ask for date values where Month([YourDateField]) is
between 3 and 6 (the month numbers for March and June), you'll get those
months for EVERY year. Do you need/want to also limit the
Year([YourDateField]) to a specific year?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
T

T Miller

Jeff,

It is within the same year. How is that done in the criteria of a query?
Is it a build? or simpler than that?
--
Thomas


Jeff Boyce said:
Thomas

You could use a filter and the "Between ... And ..." criterion/function, but
then you'd still be in the table. Access tables store data, Access queries
retrieve/show data (and give you better control).

By the way, if you ask for date values where Month([YourDateField]) is
between 3 and 6 (the month numbers for March and June), you'll get those
months for EVERY year. Do you need/want to also limit the
Year([YourDateField]) to a specific year?

Regards

Jeff Boyce
Microsoft Office/Access MVP


T Miller said:
If I have a date column in a table and I only want to see march thru june,
can I do this in a table or does it have to be done in a query?
 

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