P
pilch74
Hello.
I've had to retire beaten for today. I've been trawling GG's
endlessly but I'm not getting anywhere with this so I'm resorting to
posting here. Please help me if you can, I'd really appreciate it
Basically, what I am looking to do is to show by club and where
product group <> Z
Order counts per activity which is [ordmembact] 1,2 and 7 being the
values I want to report on.
Then I want to show SUMs of the ordervalues [ordvalue] per
[ordmembact]. Again 1,2 and 7 being the values.
I already have a collection of calculated fields and I'm showing this
across clubs.
Below is my query so far but I just can't sort the SUM out.
SELECT tblOrderTrans.clubno AS Club, Count(IIf([tblOrderTrans]!
[ordmembact] Like 1,[tblOrderTrans]![ordmembact],Null)) AS [Act 1
Orders], Count(IIf([tblOrderTrans]![ordmembact] Like 2,[tblOrderTrans]!
[ordmembact],Null)) AS [Act 2 Orders], Count(IIf([tblOrderTrans]!
[ordmembact] Like 7,[tblOrderTrans]![ordmembact],Null)) AS [Act 7
Orders]
FROM tblOrderTrans
WHERE (((tblOrderTrans.ordprodgrp)<>"Z"))
GROUP BY tblOrderTrans.clubno;
Many thanks in advance and I hope this makes sense.
Regards,
Richard Hellier.
I've had to retire beaten for today. I've been trawling GG's
endlessly but I'm not getting anywhere with this so I'm resorting to
posting here. Please help me if you can, I'd really appreciate it
Basically, what I am looking to do is to show by club and where
product group <> Z
Order counts per activity which is [ordmembact] 1,2 and 7 being the
values I want to report on.
Then I want to show SUMs of the ordervalues [ordvalue] per
[ordmembact]. Again 1,2 and 7 being the values.
I already have a collection of calculated fields and I'm showing this
across clubs.
Below is my query so far but I just can't sort the SUM out.
SELECT tblOrderTrans.clubno AS Club, Count(IIf([tblOrderTrans]!
[ordmembact] Like 1,[tblOrderTrans]![ordmembact],Null)) AS [Act 1
Orders], Count(IIf([tblOrderTrans]![ordmembact] Like 2,[tblOrderTrans]!
[ordmembact],Null)) AS [Act 2 Orders], Count(IIf([tblOrderTrans]!
[ordmembact] Like 7,[tblOrderTrans]![ordmembact],Null)) AS [Act 7
Orders]
FROM tblOrderTrans
WHERE (((tblOrderTrans.ordprodgrp)<>"Z"))
GROUP BY tblOrderTrans.clubno;
Many thanks in advance and I hope this makes sense.
Regards,
Richard Hellier.