RichardMGreen
Well-known Member
- Joined
- Feb 20, 2006
- Messages
- 2,177
Hi all
I've got some queries that run from January to December for year to date information.
I need to change them so they run from April to March.
Does anyone know how I would alter the query where statement to do that?
Here's an example where/having statement:-
HAVING (((ext_Contacts.formOfContact)<>"Telephone" And (ext_Contacts.formOfContact)<>"Email" And (ext_Contacts.formOfContact)<>"Letter") AND ((Year([contactDatetime]))=[Year]) AND ((Month([contactDatetime]))<=[Month Number]));
They are all built in a similar fashion so I just need a pointer in the right direction.
I've got some queries that run from January to December for year to date information.
I need to change them so they run from April to March.
Does anyone know how I would alter the query where statement to do that?
Here's an example where/having statement:-
HAVING (((ext_Contacts.formOfContact)<>"Telephone" And (ext_Contacts.formOfContact)<>"Email" And (ext_Contacts.formOfContact)<>"Letter") AND ((Year([contactDatetime]))=[Year]) AND ((Month([contactDatetime]))<=[Month Number]));
They are all built in a similar fashion so I just need a pointer in the right direction.