I have a query and in it I need to find where there was activity during a specific month. The activity date is a date type in an access database. how do i put the query to that i can say where activity_date is in month__? like if I want activity in april then where activity_date is in 4. How do I do this?
Here is my code, the blank is where i need to put the month.
SELECT auditor.auditor_name, sum(audTime.Administrative) as Administrative1, sum(audTime.Preliminary_Survey + audTime.Report_Writing + audTime.Field_Work) as sumofdirect1
FROM AudTime, auditor
WHERE
auditor.auditor_code = audTime.auditor_code AND
auditor.Auditor_Code <> 'ANO' AND
auditor.Student=Yes AND
activity_date between #createODBCdate(start)# and #createODBCdate(end)# and
activity_date is ___________________
<cfif isDefined("audit"
and not (audit eq '' or audit eq 'all')>
and audtime.audit_number = '#audit#'
</cfif>
GROUP BY Auditor_name
Thanks for the help.
Here is my code, the blank is where i need to put the month.
SELECT auditor.auditor_name, sum(audTime.Administrative) as Administrative1, sum(audTime.Preliminary_Survey + audTime.Report_Writing + audTime.Field_Work) as sumofdirect1
FROM AudTime, auditor
WHERE
auditor.auditor_code = audTime.auditor_code AND
auditor.Auditor_Code <> 'ANO' AND
auditor.Student=Yes AND
activity_date between #createODBCdate(start)# and #createODBCdate(end)# and
activity_date is ___________________
<cfif isDefined("audit"
and audtime.audit_number = '#audit#'
</cfif>
GROUP BY Auditor_name
Thanks for the help.