Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Running Balance Problem
William Kennedy 
    
4 years ago
I have a working checking account database that develops a running balance report with a query using the Autoincrement ID (IDCCNZ1).  A problem has been found when a mistake record is entered in the database and a new record needs to be added that was missing.  It is out of sequence then.  The balance no longer works correctly.  These are the three fields I use.

DebitRunningSum: DSum("[CCNZ1Debit]","tblCCNZ1","IDCCNZ1<=" & [IDCCNZ1])

CreditRunningSum: DSum("[CCNZ1Credit]","tblCCNZ1","IDCCNZ1<=" & [IDCCNZ1])

Balance: [CreditRunningSum]-[DebitRunningSum]

I would like to use the (CCNZ1Date) date field in the table.  That way the user can add a record with a correct date and have query sort on date when the report is generated.  Ive tried to make this work but cant make it work.  I know I must be doing something wrong.  Any Help would be appreciated.
Juan C Rivera  @Reply  
            
4 years ago
I am thinking the sorting may be a thing to look at the math is done in the order presented.  Sort your order in the query by the date and take a look.  Let us know what you find. another way to work it is to put a checkbox on the table to add only the checked items.   this way the query will not add up the ubchecked... trial and error on this one.
William Kennedy OP  @Reply  
    
4 years ago
Tried sorting in Query.  Still has problem as the running balance gets corrupted.  Has anyone used Date Time field in a DSUM to Replace the AutoNumber ID?  Maybe Concatenate String of Date Field with Unigue Autonumber.  to give ie., 20220908+ID. That Might work.  I'll try that.
Juan C Rivera  @Reply  
            
4 years ago
I never use the ID other than to set up a relationship.  I like the check box yes no and in the query, I include only checks that have cleared.  this way the running sum only adds the cleared checks.  On the reverse side, you can get a running sum of what has not clear.  Richard does have a checkbook Seminar that may be of interest.  I think the best bet is not to use the ID.  How hard will it be to redo the database?
William Kennedy OP  @Reply  
    
4 years ago
thanks

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/22/2026 1:04:41 PM. PLT: 1s