Trying to learn – How to filter dates…

5 pts.
Tags:
Access Database
Access Database Filters
Access Database Format
Microsoft Access
I have a DB that lists a date in each column, so that when I run a simple query I can pull up only the dates that I need. I have tried (filtering by exculding dates not needed) but now my DB is too big to spend the time going through each date, to only get current dates needed. I need to know a way to run a simple query to pull up curtain dates in one query. Not sure hot to do it, I am new to access and have learning as I go, so any help will do. Thank you.
ASKED: April 6, 2009  2:27 PM
UPDATED: April 13, 2009  4:16 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

There are many ways to do that anyway you may try with a DATE BETWEEN like
<b>SELECT * WHERE MYDTFIELD BETWEEN #01/01/2009# AND #02/01/2009#</b>

Another way to improve performance is to add an index or multiple indexes. If you often use multiple fields in your query, create an index that groups those fields together.

You create an index by using the index button on the table design view.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Tvisha
    hi... select * from table_nm where date_col in (<give the list of dates you need to filter>)
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following