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 
Calculations on a Form
Rajashree Natarajan 
      
4 years ago
I have a form where I enter payments made by insurance companies for the different procedures (CPT CODES). Payments come in batches on different dates. I enter the date of payment, code and the $ amount. I have a running total of the total below.

Is there a way  for me to see the total amount based on the date it was paid? Right now I just see the overall total below.
Adam Schwanz  @Reply  
           
4 years ago
You could do that a few ways with VBA, most notably probably is a calculation using criteria on a DCount

You could also do it with a query with criteria between dates on the date field

If you just want the total at the bottom of the form to adjust to certain date ranges that you set, I would use the query option. If you need something more customized you'll have to go with a VBA option.
Rajashree Natarajan OP  @Reply  
      
4 years ago
Thanks Adam. I don't know VBA yet. Still working on expert level 3 course. Query will not help as I wanted a running total of all the amounts paid on that date when I click on any one of those records. Looks like it is beyond me for now. Thanks anyway.
Adam Schwanz  @Reply  
           
4 years ago
Depending how you run your payments and if your date field has times or not. I'll give you a hint to start messing with

DCOUNT("Payment","PaymentTable","PaymentDate<=" & PaymentDate)

If you do have multiple same day deposits, the "running balance" will clump those days together, so all of them will show the same running balance. You can try to get around that by also using the ID field, depending on your setup/use again.

DCOUNT("Payment","PaymentTable","PaymentDate<=" & PaymentDate & " and ID<=" & ID)

Just some ideas to start playing with.

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: 5/2/2026 8:59:10 AM. PLT: 0s