Kamis, 01 Desember 2011

RE: [MS_AccessPros] How to display figures from a subreport to the report

 

David-

A text box in the Report Footer of the subreport like this:

=Sum(IIf([txtNoCharge], [Cost], 0))

.. should give you the sum of the items not charged. Of course, you'll have to
provide the correct name of the field that contains the cost.

John Viescas, author
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Microsoft Access Applications
Microsoft Office Access 2003 Inside Out
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)

-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of David Tolson
Sent: Thursday, December 01, 2011 4:17 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] How to display figures from a subreport to the report

Great Day, I have an Report that prints an invoice, and the Report has a
subreport that displays repair items and costs. There could be more than
one repair item with the associated cost, and then I sum the total of all
repair items. There may be an instance where one (or more) of the repair
items is marked as "N/C" for No Charge. There is a Yes/No field that marks a
repair item as N/C in the form that creates the repair order (Invoice). I
load that field in the report as unseen, and I have a text box next to the
cost of the repair item that says..

=IIf([txtNoCharge]=-1,"N/C"," ")

Now jumping back to the report, I show the totals of the repair service:

Cost of Labor

Cost of Parts

Tax

Misc.

Total cost of job (adds to above)

What I would like to do is add a field after Misc. that sums all of the
fields in the subreport where the service item was provided at no charge,
and this figure will be subtracted from the other costs to show the
discount. It would seem that I could filter the form to sum only NoCharge
items, but the form is already filtered for RepairItems.

Any suggestions will be greatly appreciated.

r/David

[Non-text portions of this message have been removed]

------------------------------------

Yahoo! Groups Links

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar