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 
Dictionary Object Vs Dlookup
Brent Davis 
     
8 months ago
All - has Richard ever covered using a Dictionary instead of a dlookup?  I have read where the Dictionary method can be much faster in large datasets. Is this accurate? Does anyone use them? Just curious what the experts think because I have no clue. But would like to learn.
Thanks for your thoughts in advance.
Sami Shamma  @Reply  
             
8 months ago
Richard made his own much faster D-lookup.

Faster DLookup
Faster DLookup 2
Brent Davis OP  @Reply  
     
8 months ago
Thanks Sami!  I remember those. I will rewatch. Thanks again sir!  Have a wonderful Friday!
Alex Hedley  @Reply  
           
8 months ago
How would you populate the Dictionary?

https://github.com/cristianbuse/VBA-FastDictionary
Brent Davis OP  @Reply  
     
8 months ago
Alex, not sure haven’t tried it. I  have what I want it to do and it works but it takes a long time to process and it hangs up sometimes.  I am using queries and a record set to get the results. I give the query parameter values, one for the customer, a begin date and an end date. Those are the prompts in one of the queriies. I use that information of the customer and date range to another query that sorts through the records based on that criteria.   I asked ChatGPT  how to make it faster and it suggested using a dictionary process and gave me the code but I don’t really understand it.

My situation:
I get a csv file every morning with quotes that have been entered the day before by the customers that are assigned to me. The fields are: Quote#, Quotedate,  Customer, origzip, destzip, weight, charges.  I move them to my database using transfer spreadsheet and it works great. The issue is that there can be multiple quotes for the same information except the charges and the quote# are different. What I want to do is parse through the data and take one record with the lowest charges, and keep all the data associated with that record,  and delete the others. So, if the Quotedate, customer,  origzip, destzip, weight are the same find the lowest chargers and delete the others. The problem grouping them together is the quote# is different for every record but I only want to keep the lowest charges record with the quote#. The daily csv file has around 400 records and the table has almost 200,000. currently.

This probably does not make sense but basically I want the quote#, Quotedate, customer, origzip, destzip, weight and charges for the lowest quote for that group and delete the others records. There are usually three quotes with the same information and the only difference is the quote# and charges.

Any assistance is appreciated.
Brent Davis OP  @Reply  
     
8 months ago
I figured it out! I was trying to make it way more complicated than it needed to be. Created two queries and it worked perfectly! Not all for naught though, learned some things in the process. Thanks for the assistance. On to the next solution!!

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: 4/30/2026 6:52:55 PM. PLT: 1s