?
Solved

DSum on calculated field in MS Access

Posted on 2014-04-13
3
Medium Priority
?
749 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 1000 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 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

765 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