Solved

DSum on calculated field in MS Access

Posted on 2014-04-13
3
689 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

911 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

23 Experts available now in Live!

Get 1:1 Help Now