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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMPARE CURRENT MONTH

Status
Not open for further replies.

ramrags

IS-IT--Management
Aug 17, 2001
62
US
I have a simple db with just one table, the table has 6 fields. One of the fields is called RenewalDate, this is the date that lease renewals are due. I want to create a query that will compare the month part of this date with the current date, and return the accounts that need to be renewed for the Month. Thank you for any help
 

It is actually quite simple with the Month function.

Select * From Table
Where Month(RenewalDate)=Month(Date()) Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
*nods* That works assuming 1 year or shorter lease. For a longer term, you'll need to compare Year() also... unless you want to be reminded now about the lease coming due in October 2002. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top