mrabrams2
Registered User.
- Local time
- Yesterday, 23:36
- Joined
- Apr 29, 2003
- Messages
- 54
I have been working on this for some time now, and I am hoping someone can look and it and say:
"All you have to do is this......."
I have a report "Detail Report of..." based on the below query which works wonderfully - the report is exactly what I need.
What I have tried to do is, based on the same query, to create a "Summary Report".
Where the Detail report looks like:
DEF Company Status1 12
FGH Company Status1 15
IJK Company Status1 34
DEF Company Status2 25
FGH Company Status2 51
IJK Company Status2 64
I want the Summary Report to be solely based on StatusType:
Status1 61
Status2 139
I have tried different variations of the Grouping in the Summary report, but just can't get it to work.
I'm even wondering if I will wind up needing 2 separate queries (which is actually the easy way out.!)
Here is the SQL that works fine for the detail report. (If I take out the tblrequester.REQUESTER, it works fine for the summary but not for the detail!)
Is there a way to have both reports based on the same query?
Thank you for reading this all the way through !
Michael
"All you have to do is this......."
I have a report "Detail Report of..." based on the below query which works wonderfully - the report is exactly what I need.
What I have tried to do is, based on the same query, to create a "Summary Report".
Where the Detail report looks like:
DEF Company Status1 12
FGH Company Status1 15
IJK Company Status1 34
DEF Company Status2 25
FGH Company Status2 51
IJK Company Status2 64
I want the Summary Report to be solely based on StatusType:
Status1 61
Status2 139
I have tried different variations of the Grouping in the Summary report, but just can't get it to work.
I'm even wondering if I will wind up needing 2 separate queries (which is actually the easy way out.!)
Here is the SQL that works fine for the detail report. (If I take out the tblrequester.REQUESTER, it works fine for the summary but not for the detail!)
Code:
SELECT tbl_ABC.GROUP
, tbl_GROUP.GROUPNAME
, Sum(IIf([DATE_IN]
Between [Forms]![frmABC]![txtBeginDate]
And [Forms]![frmABC]![txtEndDate]
,1 ,0)) AS InRange
, tbl_TypeOfRequest.REQUESTTYPE
, tbl_Requester.REQUESTER
...
GROUP
BY tbl_ABC.GROUP
, tbl_GROUP.GROUPNAME
, tbl_TypeOfRequest.REQUESTTYPE
, tbl_Requester.REQUESTER
HAVING tbl_ABC.GROUP=[Forms]![frmABC]![cboGROUP];
Is there a way to have both reports based on the same query?
Thank you for reading this all the way through !
Michael