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 / Database Design / July 2005

Tip: Looking for answers? Try searching our database.

Cumulative Values in a Subform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pompeyjim - 15 Jul 2005 09:09 GMT
Is it possible to add together the values in a column in a subform and
display them in another column in the same subform?
Steve Schapel - 15 Jul 2005 19:49 GMT
Pompeyjim,

One way to do this is via a Domain Aggregate Function.  This can be done
in the query that the form is based on, or in the Control Source of the
textbox on the form.  In the latter case, something like this...
 =DSum("[TheAmount]","YourTable","[TheSortingField]<" & [TheSortingField])

If you have a very large number of records, the loading of the form may
be a little clunky.

Signature

Steve Schapel, Microsoft Access MVP

> Is it possible to add together the values in a column in a subform and
> display them in another column in the same subform?
 
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.