Solved

Running total on main form with table as source object of subform

Posted on 2013-06-03
4
417 Views
Last Modified: 2013-06-06
I would like to be able to have a running sum on a main form from a sub form that is based on a table source object. This is an access 2003 database. I am currently able to provide them the total after they have saved the records. I have tried both Dsum and Dlookup to get this to work but it fails.
0
Comment
Question by:smolbeck367
[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
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 39216376
I'm not really clear what you are trying to do as you say that  ' I am currently able to provide them the total after they have saved the records.'

How else do you expect to be able to do it?

Assuming you are using bound forms, then as you move from main form to subform you automatically save the main form record and as you move from subform record to subform record each record is saved.
0
 

Author Comment

by:smolbeck367
ID: 39216397
Hi Peter57r, while they are entering their time for the day, I would like it to sum on the main form as they go. Once they hit save the daily time, the hours they have entered do appear. This is a time tracking tool that we have developed internally. We can either enter hours by the day for the entire week. When the user selects the day they want to enter time for - I would like the hours as they enter them to be a running sum on the main form. The hours are entered into a sub form with a table as a record source. In addition, this is a form with tab control. It is the after part that is the problem. The users would like to see the totals as they go.I hope that is more clear.  Thanks for your time.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 39224735
Sorry but it's still not really clear to me how this works.
Can you post a sample db or if not then images of design view and form view of your form.
0
 

Author Closing Comment

by:smolbeck367
ID: 39227145
I was able to provide them a work around to this issue.  I think I will close it it for now. If I have to find another way I will repost. Thanks for taking the time.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

636 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