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

comparing just the month in a date field

Status
Not open for further replies.

biosol

MIS
Mar 12, 2002
141
US
Hi,
i'm trying to run a cfquery where the (Access) Date/Time field is compared to a month (as a number). My dates are stored in this format 12/12/02. I've tried this code in the WHERE statement without success:

DatePart(m, MI.meeting_date) = #session.current_month#

however, there are a couple problems i don't know how to fix. i have a table with numbers and month names that i need to query to get the number of the month to compare it to the stored value.

date field is in MI.meeting_date, # and names of months are in table Months

suggestions? TIA
 
where month(MI.meeting_date) = #session.current_month#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top