Computer Learning Zone CLZ Access Excel Word Windows

From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, "Look at that!"

-Edgar Mitchell, Apollo 14
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Lookup Query Based on Criteria
Omar Almanafi 

2 years ago
Hi - I'm running a database and I want the resultant query to give a lookup of the cumulative value based on two criteria. To allow for this to happen I have joined to queries (grouping the first) and creating an IIF statement that allows the results from the second to be totalled by SUM. The issue is that as both queries are relatively large (one 50k lines other is 750k lines) I think database is having to create all the lines before finally doing the SUM. And this extremely slow - any suggestions on a better way of doing this? (sorry if this explanation is poor I usually read through forums never written on them before!)
Adam Schwanz  @Reply  
           
2 years ago
Yea I don't follow what's going on here. Could you elaborate more?

If the SUM is checking every single record, then youll have to load in every single record yea.

If you have criteria on the queries or anything, if those fields are not indexed, it would scan the full tables again. If they are indexed, it can get what records it needs from the index, which would be faster.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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/6/2026 9:23:54 PM. PLT: 0s