Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 822
  • Last Modified:

DSum on calculated field in MS Access

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
anthonytr
Asked:
anthonytr
2 Solutions
 
Kelvin SparksCommented:
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
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
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
 
anthonytrAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now