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 / General 2 / February 2007

Tip: Looking for answers? Try searching our database.

subreport calculations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert - 28 Feb 2007 14:29 GMT
I have a master report with 2 sub reports all tied together based on Employee
#. It is a report for payroll, it adds totals from all three reports for a
grand total. The problem I have is sometimes when a subreport is not created
for an employee my grand total shows Error.

Main Report               all sales
sub         expenses
sub        Bonus

We should always have sales, but expenses and bonus differ on each pay
period, sometimes a employee may not have a bonus or expenses. When this
happens I get error msg I my grand total. Any suggestions to fix would be
appreciated.

Grand total = [allsales]+[subreport]![expenses]-[subreport1]![Bonus]

again everthing works when all three reports have totals.
Allen Browne - 28 Feb 2007 14:44 GMT
See:
   Bring the total from a subreport onto a main report
at:
   http://allenbrowne.com/casu-18.html

The article explains how to test the HasData property of the subreport to
handle the cases where it has no records.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I have a master report with 2 sub reports all tied together based on
>Employee
[quoted text clipped - 15 lines]
>
> again everthing works when all three reports have totals.
 
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.