Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2005

Tip: Looking for answers? Try searching our database.

SUM for calculated field on report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deki - 28 Oct 2005 23:36 GMT
Hello!
I have a report named rptLoansErrorRateReport. Textbox "ErrorCount" in
Detail section of this report has Control Source:
=DCount("ValidError","ErrorTable","NameID=" &
[Reports]![rptLoansErrorRateReport]![cboNameID] & " AND
(ErrorTable.ValidError)=-1").
How can I get SUM in Report Footer for "ErrorCount" textbox?
Signature

Deki PA

Marshall Barton - 29 Oct 2005 04:04 GMT
>I have a report named rptLoansErrorRateReport. Textbox "ErrorCount" in
>Detail section of this report has Control Source:
>=DCount("ValidError","ErrorTable","NameID=" &
>[Reports]![rptLoansErrorRateReport]![cboNameID] & " AND
>(ErrorTable.ValidError)=-1").
>How can I get SUM in Report Footer for "ErrorCount" textbox?

Pace an invisible text box named txtRunErrCnt next to the
ErrorCount text box.  Set its Control source expression to
=ErrorCount  and it RunningSum property to Over ALL.

Then the report footer text box can display the total by
using the expression  =txtRunErrCnt

Note that your DCount could be a little shorter:
=DCount("ValidError","ErrorTable","NameID=" _
                & Me.cboNameID & " ANDValidError=-1")

Signature

Marsh
MVP [MS Access]

Deki - 31 Oct 2005 16:01 GMT
Works perfect! Thank you Marsh!
Signature

Deki PA

> >I have a report named rptLoansErrorRateReport. Textbox "ErrorCount" in
> >Detail section of this report has Control Source:
[quoted text clipped - 13 lines]
> =DCount("ValidError","ErrorTable","NameID=" _
>                 & Me.cboNameID & " ANDValidError=-1")
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.