Re: Using If expressions with an Or expression, and a Count question
- From: Lord Kelvan <the_iddiot@xxxxxxxxxxx>
- Date: Mon, 13 Oct 2008 14:19:24 -0700 (PDT)
what you said makes no sence to me
try this if this isnt what you want please tell me what you want
directally
IIf([Strategy]="4DECIDE" OR [Strategy]= "4URGENT",
[Strategy],"4REPLY")
as for the counting this should do it
is isnt the most efficant method but i cannot think of another method
at the moment
SELECT "1-10000" AS range, Count(datefield) AS countofdatefield
FROM thetable
WHERE (((numberfield) Between 1 And 10000) AND ((datefield) between
[enter start date] and [enter end date]))
union
SELECT "10001-20000" AS range, Count(datefield) AS countofdatefield
FROM thetable
WHERE (((numberfield) Between 10001 And 20000) AND ((datefield)
between [enter start date] and [enter end date]))
union
.... etc ...
hope this helps
Reagrds
Kelvan
.
- Follow-Ups:
- Re: Using If expressions with an Or expression, and a Count question
- From: John Spencer
- Re: Using If expressions with an Or expression, and a Count question
- Prev by Date: Running an SQL Statement with a GROUP BY Clause
- Next by Date: Re: Query corresponding to date range.
- Previous by thread: Running an SQL Statement with a GROUP BY Clause
- Next by thread: Re: Using If expressions with an Or expression, and a Count question
- Index(es):
Loading