I'm trying to count how many offices opened cases between 1/1 and 6/30.
My query is set up with these fields: office, disposition_status, and open_date.
In my report, for 1 organization I used:
=Sum(abs([office]="As" and [disposition_status] Between "001" and "002" and [open_date] Between #1/1/2004# and #6/30/2004# or [office]="Am" and [disposition_status] Between "001" and "002" and [open_date] between #1/1/2004# and #6/30/2004#))
This expression seems to work. But for our second organization, there are 5 offices I need to count from and when I put in:
=Sum(Abs([office]="De" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Fr" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Lm" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Sa" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="To" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004#))
I get #Error. If I put the Sum(Abs( before each office section, I get -1 (the total should be 1).
Any ideas on how I can write an expression that will pull on 5 different offices with the same disposition_status and date criteria?
My query is set up with these fields: office, disposition_status, and open_date.
In my report, for 1 organization I used:
=Sum(abs([office]="As" and [disposition_status] Between "001" and "002" and [open_date] Between #1/1/2004# and #6/30/2004# or [office]="Am" and [disposition_status] Between "001" and "002" and [open_date] between #1/1/2004# and #6/30/2004#))
This expression seems to work. But for our second organization, there are 5 offices I need to count from and when I put in:
=Sum(Abs([office]="De" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Fr" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Lm" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="Sa" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004# Or [office]="To" And [disposition_status] Between "001" And "002" And [open_date] Between #1/1/2004# And #6/30/2004#))
I get #Error. If I put the Sum(Abs( before each office section, I get -1 (the total should be 1).
Any ideas on how I can write an expression that will pull on 5 different offices with the same disposition_status and date criteria?