Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
DSum calculation
Alan Higgins 
     
4 years ago
I need to display the difference between 2 caluculated text box that are using DSum amd Sum. The formula below is what i tried to apply however doesn't work.

=DSum([Debit],[ChBudgetQ],[ExpenseType='Receipt']-[Debit])
Any suggestions would be appreciated.
Kevin Robertson  @Reply  
           
4 years ago
In the criteria, you are trying to subtract a numeric value from a text string.
Alan Higgins OP  @Reply  
     
4 years ago
=DSum("Debit","ChBudgetQ","ExpenseType='Receipt'") is the control source for the text field that is returning value in the text field. This returns a sum of all the "receipts" in the column. i wanted to subtract that value from the debit total. I see what you mean now, hum i am at a loss of how to accomplish this. The control source for the debit text box is =Sum([Debit])
Kevin Robertson  @Reply  
           
4 years ago
OK. Put the Debit Total outside the DSum function.

=DSum("Debit","ChBudgetQ","ExpenseType='Receipt'") - DebitTotal

Change DebitTotal to whatever you have named the debit total text box.
Alan Higgins OP  @Reply  
     
4 years ago
You are the man, thank you, that work perfectly.
Kevin Robertson  @Reply  
           
4 years ago
You're welcome.

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: 8/17/2026 7:46:23 PM. PLT: 1s