Attached, you can find screenshot of the report that I created. Report was grouped by due date. One group by due date, another by month.
This report counts all lines for the loans (this means that is any loans have 3 or 4 lines report will count it).
I created 2 queries:
1) group by due date
SELECT First([tblCombined-Insuran
ce].[Loan No]) AS [Daily-Count-Loan-No], First([tblCombined-Insuran
ce].[Due Date]) AS [Daily-Count-Due-Date], "*" AS [Star-Field]
FROM [tblCombined-Insurance]
GROUP BY [tblCombined-Insurance].[L
oan No], [tblCombined-Insurance].[D
ue Date];
2) group by month
SELECT First([tblCombined-Insuran
ce].[Loan No]) AS [Monthly-Count-Loan-No], First(Format([Due Date],"mm/yy")) AS [Monthly-Count-Due-Date], "*" AS [Star-Field]
FROM [tblCombined-Insurance]
GROUP BY [tblCombined-Insurance].[L
oan No], Format([Due Date],"mm/yy");
My goal embed subreport the way so each group in main report has correct subtotal from the subreport
I will probably need two subreports: one is to count Daily-Count-Loan-No, another to count Monthly-Count-Loan-No.
Maybe there's another, simplier way to do it. Please let know
Thanks
Start Free Trial