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 / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Total of Subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Microsoft - 06 May 2008 13:54 GMT
Access 2007

I have a mainform which contains a subform

The mainform contains details of the finished item
the subform contains details of the finished items parts

Eg
Main form = Table  = sum of 4 x 10 + 1 x 140 = £198
Subform = 4 x legs  @ £10ea + 10% markup
               1 x top @ £140 ea + 10% markup

I would like the mainform to have a running total of how much the item is
costing as new lines are added to the subform.

Subform contains
Itemdesc
ItemQty
ItemUnitRate
ItemMarkUp%
ItemSaleValue - this is a calculated field ......
=(ItemQty*ItemUnitRate)+(ItemQty*ItemUnitRate*ItemMarkUp%)

Mainform contains
FinItemDesc
FinItemQty
FinItemSalValue  - it is this field that I cannot calculate.   I want it to
equal  Sum(ItemSalValue) * FinItemQty

I have tried adding a calculated field in the footer (txtItemTotal) of the
subform as:  sum(ItemSaleValue)
and a calculated field in the mainform as:  forms!frmSubform.txtItemTotal x
FinItemQty

but this doesn't work.

What am I doing wrong

Thanks

A
Microsoft - 06 May 2008 14:01 GMT
The subform itself doesn't show the correct total either - it just has
#error
> Access 2007
>
[quoted text clipped - 37 lines]
>
> A
 
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.