Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-06-03
4
Medium Priority
?
428 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
  • 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

963 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