L
Love Buzz
Hello all.
I pull data from a report that uses * and ** to indicate a certain action
taken on a particular transaction. Since this is a wildcard in Access, I am
having some difficulty trying to count. It counts any field with an asterix,
whether there is one or two. Not every field has an asterix in this column,
but I am trying to count the fields with one asterix and fields with two.
Here is my SQL. Any thoughts? Thanks for your help.
SELECT [Incoming Return Item Detail].queue, [Queues and Descriptions].[Queue
Name], Count([Incoming Return Item Detail].queue) AS CountOfqueue,
Count([Incoming Return Item Detail].RedepositIndicator) AS
CountOfRedepositIndicator, Count([Incoming Return Item
Detail].RedepositIndicator) AS CountOfRedepositIndicator1
FROM [Queues and Descriptions] INNER JOIN [Incoming Return Item Detail] ON
[Queues and Descriptions].Queue = [Incoming Return Item Detail].queue
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]))
GROUP BY [Incoming Return Item Detail].queue, [Queues and
Descriptions].[Queue Name]
HAVING (((Count([Incoming Return Item Detail].RedepositIndicator)) Like
"[*]") AND ((Count([Incoming Return Item Detail].RedepositIndicator)) Like
"[**]"));
I pull data from a report that uses * and ** to indicate a certain action
taken on a particular transaction. Since this is a wildcard in Access, I am
having some difficulty trying to count. It counts any field with an asterix,
whether there is one or two. Not every field has an asterix in this column,
but I am trying to count the fields with one asterix and fields with two.
Here is my SQL. Any thoughts? Thanks for your help.
SELECT [Incoming Return Item Detail].queue, [Queues and Descriptions].[Queue
Name], Count([Incoming Return Item Detail].queue) AS CountOfqueue,
Count([Incoming Return Item Detail].RedepositIndicator) AS
CountOfRedepositIndicator, Count([Incoming Return Item
Detail].RedepositIndicator) AS CountOfRedepositIndicator1
FROM [Queues and Descriptions] INNER JOIN [Incoming Return Item Detail] ON
[Queues and Descriptions].Queue = [Incoming Return Item Detail].queue
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]))
GROUP BY [Incoming Return Item Detail].queue, [Queues and
Descriptions].[Queue Name]
HAVING (((Count([Incoming Return Item Detail].RedepositIndicator)) Like
"[*]") AND ((Count([Incoming Return Item Detail].RedepositIndicator)) Like
"[**]"));