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 / Modules / DAO / VBA / January 2007

Tip: Looking for answers? Try searching our database.

Report Footer totals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paulu - 22 Jan 2007 02:00 GMT
I have a sales summary report based on a multi-table query (with date range
criteria) which includes tblOrders (one off order information such as
OrderID, CustomerCode, ShippedDate, DeliveryCharge etc) and tblOrderDetails
(order details such as ProductCode, UnitCost, UnitSell and ShippedQuantity)
linked by the OrderID.

Each line in the report is a summary of a sale (displayed in the OrderID
Footer Section) consisting of the OrderID, OrderDate, SalesPerson,
CustomerCode, TotalSaleValue, CostofGoodsSold and DeliveryCharge where the
TotalSaleValue and CostofGoodsSold controls are calculated using the Sum
function.

The Details section visible property is set to false.

There is a Grand Totals line displayed in the ReportFooter section
displaying ReportTotalSalesValue, ReportTotalCosts and
ReportTotalDeliveryCharges. The ReportTotalSalesValue, ReportTotalCosts are
calculated using the sum function.

My problem is displaying the total delivery charges for the report. This is
because for those sales which have a delivery charge it is repeated in the
query for each item sold under that OrderID, where as it applies to the
entire sale not each item in the sale.  

So my question is how do I go about putting a calculated control in the
report footer to sum the delivery charges, or is there another way to
properly calculate the total of the delivery charges and display that total
in the Report Footer

My apologies for the long winded description however any help would be
appreciated.

Cheers,

Signature

paulu

Marshall Barton - 22 Jan 2007 16:45 GMT
>I have a sales summary report based on a multi-table query (with date range
>criteria) which includes tblOrders (one off order information such as
[quoted text clipped - 24 lines]
>properly calculate the total of the delivery charges and display that total
>in the Report Footer

Add a text box (named txtRunFreight) to the OrderID group
footer section.  Set its control source to     DeliveryCharge
and its RunningSum property to Over All.

Then a report footer text box can display the freight grand
total by using the expression  =txtRunFreight

Signature

Marsh
MVP [MS Access]

paulu - 22 Jan 2007 22:21 GMT
Marsh,

Fantastic!!

I thought I may have had to play with queries to get it right.  This is great.

Thanks again

Cheers,

Signature

paulu

> >I have a sales summary report based on a multi-table query (with date range
> >criteria) which includes tblOrders (one off order information such as
[quoted text clipped - 31 lines]
> Then a report footer text box can display the freight grand
> total by using the expression  =txtRunFreight
 
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.