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 Programming / March 2007

Tip: Looking for answers? Try searching our database.

Sub Form Total in Main Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
solar - 31 Mar 2007 15:34 GMT
Hi,

One Simple  problem which i was not able to find solution.

In a sub-Form(Deduction_Details), I have three field like
1.Sl.No (Autonumber field)
2.Deduction_Remarks
3.Deduction_Amount

I may type more than one data as "Sl.No" is already specified as Autonumber
field. I need to show the sum of "Deduction_Amount"  in the Main Form.

I used the following formula in control source of the text box.
=Sum([Deduction_Details].[Form]![Deduction_Amount])

But, it is showing #Error. Is it correct ?

Could anybody please point out me where i have done mistake.

Thnx..in Advance.

ngr.
Ken Snell (MVP) - 31 Mar 2007 16:46 GMT
Put a hidden textbox in the subform's form footer section, and have it
calculate the sum by using a Sum expression. Then change the control source
of the textbox on your main form to just read the value from that hidden
textbox (no Sum in the main form).

Signature

       Ken Snell
<MS ACCESS MVP>

> Hi,
>
[quoted text clipped - 19 lines]
>
> ngr.
 
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.