SteveL13
asked on
How divide number on a report by a number on a subreport?
I have a field on a report, "txtSumMoldsMade" which I want to divide by a number on a subreport, "txtCount" and show the result in a field on the main report, "txtAverage"
How?
How?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<No points wanted>
And you can see here for a way to deal with errors of the sub has no records:
https://www.experts-exchange.com/questions/24843132/Access-reports-handling-fields-with-no-data-in-them.html
JeffCoachman
And you can see here for a way to deal with errors of the sub has no records:
https://www.experts-exchange.com/questions/24843132/Access-reports-handling-fields-with-no-data-in-them.html
JeffCoachman
Just noting that the syntax I post was correct and will work from anywhere.
mx
mx
=[txtSumMoldsMade] / (Reports!YourReportName!Yo
Of course, if txtCount can be zero, then you will get #Error ... or if the subreport does not have any records.
mx