Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find records from past month, the current month or the next month 1

Status
Not open for further replies.

LD1010

Technical User
Dec 6, 2001
78
US
Thanks for reading my post.

I can't seem to wrap my mind around how to do this. I'm trying to return all the records from tblServiceDates where the service date occurs in either the past month, the current month or the next month.

Let's say the table contains the following dates:

11/5/2010
12/10/2010
1/3/2011
2/21/2011
12/15/2011

Based on todays date of 1/24/2011 I need the following dates returned: 12/10/2010, 1/3/2011 and 2/21/2011

Any help in how to approach this would be much appreciated.
 
Thanks again Duane, that's just what I needed.

I'm very thankful for your willingness to share your wealth of knowledge.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top