Pass sum from subreport to main report - rdlc

I have some customer information in main report and the account statement in sub report. The sub report have balance payment using RunninValue sum.
I need to show the balance payment in main report ie after the sub report table. How can i done this?

There is an older post that explains how this can be achieved.
Get data from a subreport into the main report
hope this can help you

Related

crystal reports xi show only group headings

I have a crystal report that has data grouped by employee like this:
Employee 1:
-Name
-Orders written
-Etc
The report displays all this information. but what I want to do is make a list that is only the employee and when clicked on will drill down to the info. Even better would be is there a way to make a drop down to select employee?
The report is created from a sql query command with parameters for date to get the amount of orders.
Crystal Reports has DrillDown functionality. Maybe this will help. https://msdn.microsoft.com/en-us/library/ms227343(v=vs.80).aspx

Dependent filters in Webi report

I've created a webi report which displays a graph of Total revenue per day, Date is on X axis and Rev is on Y axis.
I've a requirement where the client wants to see it category and sub category wise in the same graph. I've used Filter Bar option and dragged Category. This works fine and displays the revenue for the selected category on a daily basis.
Now I added another filter Sub-Category which should display only the list of sub-categories associated with the Category selected but in turn displays all sub-categories irrespective of the category selected.
Is there a way to link those two filters?
Thanks,
Vijay
Hopefully It might be helpful to someone just in case...
I've created a custom navigation path in my business layer and used it in my webI.
Thanks,
Vijay
You can create another report sub_report to collect all categories and sub categories
Then you add this sub_report to master report by insert sub_report.

MS Access report fails to total correctly

I have a report in MS Access 2010 that had been working fine for a while. I had to make updates to the report to allow the run-time selection of one or more 'reasons' that would be included on the report.
My initial process dynamically built them into the report filter at run-time, but my totals came out wrong. I then dynamically altered the QueryDef.SQL (adding the final two AND statements in the code below) that the report is based on, but they still came out wrong. I then discovered (did I mention that I'm not the one who originally wrote the report) that the total field is based on another query entirely.
Quick background before everyone questions the sanity: We're calculating an audit score. Each audit is checked on several questions, most of which receive a Yes/No (pass/fail) answer. Some questions may receive a 'Total Fail' which results in a zero score for the entire audit, not just for the particular question. The individual audit score is percentage right OR zero if there is a 'Total Fail'. The overall score on the report is the average of the individual audit scores.
So, with that background, I would hope that there is enough information to make sense of the queries.
This is the query (qryRptAtt) that the report is based on:
SELECT vwAttorneys.CurrentAttorneyName AS PayeeID, tblAuditAtt.AttAudit_ID,
vwAttorneys.CurrentAttorneyName AS Attorney_Name, tblAuditAtt.Loan,
tblAuditAtt_A.A_ID, tblAuditAtt_Q.Question, tblAuditAtt_A.Answer,
tblAuditAtt_A.Comment, tblAuditAtt.EndDate, tblAuditAtt.Status,
tblAuditAttLoans.State, tblAuditAtt.Reason
FROM tblAuditAttLoans RIGHT JOIN ((vwAttorneys INNER JOIN tblAuditAtt ON
vwAttorneys.PayeeID = tblAuditAtt.PayeeID) INNER JOIN (tblAuditAtt_Q
INNER JOIN tblAuditAtt_A ON tblAuditAtt_Q.A_ID = tblAuditAtt_A.A_ID) ON
tblAuditAtt.AttAudit_ID = tblAuditAtt_A.AttAudit_ID) ON
tblAuditAttLoans.LoanNumber = tblAuditAtt.Loan
WHERE (((tblAuditAtt_A.Answer)<>"NA")
And ((tblAuditAtt.EndDate) Between Forms!frmRptAtt!txtFrom And Forms!frmRptAtt!txtTo)
And ((tblAuditAtt.Status)="Submitted"))
AND tblAuditAtt.Reason in ('reason1', 'Reason 2', 'Reason 3', 'Reason 4', 'Reason 5')
AND tblAuditAtt.PayeeID = '<removed for privacy>'
ORDER BY vwAttorneys.Attorney_Name, tblAuditAttLoans.State, tblAuditAtt.Loan, tblAuditAtt_A.A_ID
(All the horrendous parenthesis come from Access building the query from the visual designer. Yes, there are some columns selected twice - I will clean that up if possible.)
This query is correctly giving me all the detail information I need on the report. In the report itself, the overall score field in the footer section of the report has Control Source set to =IIf([txtA_TF]=0,DAvg("[Score]","[qryRptAttAggregateAudits]"),0). This is the one that is giving me the wrong answer. qryRptAttAggregateAudits is as follows:
SELECT qryRptAtt.PayeeID, qryRptAtt.AttAudit_ID, qryRptAtt.Loan,
Sum(IIf(Answer="Yes",1,0)) AS Yes,
Sum(IIf(Answer="No",1,0)) AS [No],
Sum(IIf(Answer="DC",1,0)) AS DC,
Sum(IIf(Answer="TF",1,0)) AS TF,
IIf(DC>0,0,IIf(TF>0,0,Sum(IIf(Answer="Yes",1,0))/(Sum(IIf(Answer="Yes",1,0))+Sum(IIf(Answer="No",1,0))))) AS Score
FROM qryRptAtt
WHERE (((qryRptAtt.PayeeID)=[Forms]![frmRptAtt]![cmbAttorney]))
AND qryRptAtt.Reason in ('Reason1', 'Reason2', 'Reason3', 'Reason4', 'Reason5')
AND qryRptAtt.PayeeID = '<removed for privacy>'
GROUP BY qryRptAtt.PayeeID, qryRptAtt.AttAudit_ID, qryRptAtt.Loan
The report total query selects from the report detail query qryRptAtt. In both queries, Forms!frmRptAtt is open and has had the appropriate fields filled with valid data.
I've tried the total query with both (((qryRptAtt.PayeeID)=[Forms]![frmRptAtt]![cmbAttorney])) and AND qryRptAtt.PayeeID = '<removed for privacy>' in the WHERE clause, with only one and with only the other (They both resolve to the same criteria, so it's really just redundant code & will be cleaned up once I get the major issue resolved).
I've exported the report to Excel and manually calculated the score there, and the report is showing a total that is about 0.6% off.
If anyone was able to follow this, do you have any suggestions?
It turns out that there was an oddity in the report definition.
The 2nd query was being used to generate rows of data that were being totaled with DAvg() in the report. The DAvg() function worked on a query result before I made my changes, but didn't seem to want to work with the query after I made the changes.
I modified the 2nd query to build a temporary table, then modified the DAvg() call in the report to reference the table instead of the query, and that seems to have it working.

simple average calculation in Access XP report

i have a database used at work for evaluating calls, the database is somewhat dated and originally created on Access XP. Once evaluated these calls are given a score out of 5 which is entered along with other data (such as date, employee name, etc) on a form. I have the reports set up so they generate when you enter the employee name and then the start of a date period and the end of a date period, the report will then generate and show the entries made between those 2 dates. i am trying to include a section on the report which shows an average of the call score for the employee for the period chosen. I understand this may be pretty simple but i'm struggling! cheers, Kris
If you want to work out group calculations on reports, you can either put them in the group header/footer, or report header/footer (for calculations over the whole report).
In this case, placing a textbox with something like =AVG([CallScore]) as the control source in the Report Footer should work.
This page should explain more about using aggregate functions in reports: http://office.microsoft.com/en-gb/access-help/summing-in-reports-HA001122444.aspx

New page per a group in crystal report

I'd like to show new page per a group in crystal report. Please check my images below
report design
report review
How to set to show one group box per page?
In GroupFooterSection1, set the property NewPageAfter to Always.