Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Check Register    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Faster Alternative to DSum
John Walker 
     
5 years ago
In the TechHelp video, "Check Register", Richard mentions that the method of using DSum in a query ("CheckRegQ") will slow down the dB operation where there are a large number of transactions. So, what is the alternative to DSum that doesn't slow down operation? Is a course offered that demonstrates that alternative?
Alex Hedley  @Reply  
           
5 years ago
John Walker OP  @Reply  
     
5 years ago
I don't understand.
Adam Schwanz  @Reply  
           
5 years ago
Did you watch the video? It shows how to do a count without doing a DSUM
John Walker OP  @Reply  
     
5 years ago
I just now realized that Alex was giving me link to the Aggregate video. Sorry. At first I thought he had just given me a one-word response to my question. I have not yet viewed that video. But my understanding of aggregate queries is that they are not updateable, so I'm not sure this would work for something like a check register where wehn transactions are added the new running balance is shown immediately and in the same query.
Scott Axton  @Reply  
        
5 years ago
John how many transactions do you generate or anticipate generating?  
You may be concerned about a minuscule amount of time difference.  
Today's computers are pretty darn efficient.  Unless you have a lot of users or are pulling huge amounts of data over a network that is pretty slow, I would run it as Richard showed and then worry about speed later.
John Walker OP  @Reply  
     
5 years ago
Thank you Scott. I will do that, but now I'm running into problems using dates in the criteria clause of the DSum function. I either get #Error or simply an empty field. I will write up the details of this problem in a new question tomorrow. I'm out of time today. Thanks again to each of you, Alex, Adam, and Scott for your responses.
Adam Schwanz  @Reply  
           
5 years ago
I can about guarantee your problem is null values. Try wrapping the DSUM (and the stuff it's adding up) in NZ Function
John Walker OP  @Reply  
     
4 years ago
Adam, it turns out that the problem with the errors in the DSum field was because I was trying to join two tables (one with transaction dates and one with the amounts) in the same query that used the DSum function. The solution was to use two queries ' one to join the tables and a second one that uses the first one as its data source and uses the DSum function.
Now I would like to put the first query into the second one as a subquery. However, when I do that, the DSum column displays #Error. So I guess I'm doing something wrong in trying to use a subquery AND a DSum function.
I tried to include the SQLs so you could see what I'm doing, but apparently there is a space limitation on these comments.
But any suggestions you (or anyone else) might have about using DSum in a query with a subquery would be most appreciated.


Adam Schwanz  @Reply  
           
4 years ago
Are you saying you were trying to use expressions created in the query inside of the DSUM? Otherwise I don't see how that would cause you an issue, if the text is too long you can always upload a picture too. Snip & Sketch
Richard Rost  @Reply  
          
4 years ago
John, why don't you tell us what you're trying to do, and we'll figure out the most efficient way to do it for you. Explain it like you would to a 3rd grader. :)

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

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: 4/30/2026 12:34:04 AM. PLT: 0s