Solved

DSum on calculated field in MS Access

Posted on 2014-04-13
3
703 Views
Last Modified: 2014-04-13
Hi,

I'm probably not able to do this with a calculated field but its worth a go.

I'm trying to calculate fields on a subform and store this figure on the main form.
0
Comment
Question by:anthonytr
3 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 250 total points
ID: 39997880
Yes you can. It is the common way to bring a total for instance off a subform to a main form.
Use an event such as the ON Current to get the value (Me.subformname.Form.Controlname) and set the control value equal to it (bind the control to where you want it saved in table).


Kelvin
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 39997894
Just remember that in general it is not a good idea to store calculated values, or derivations of calculated values. Usuall better to create those on the fly as needed, eitherin a query or by using VBA.
0
 

Author Comment

by:anthonytr
ID: 39997917
That's probably the best way to do it, that is, calculating the values on the fly either on a report or form instead of storing them.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now