Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now