Solved

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

Posted on 2013-06-03
4
412 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

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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.
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…

759 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