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 
DLOOKUP Slow Down
Juan C Rivera 
            
6 years ago
Richard looking for advise/guidance
Making a form with several combo box, doing a filter as they get populated.  by using the DLOOKUP I get the end product and copy it to a sub-form move to new record and so on to populate the table.  Now it works good but as the table of products gets larger will the seek time start to slow down?
If yes can the same dropdown and filter set up work with the record set?  Do you have something in the vault.   Last can the =sum([cost]) on the main form work id the information is on a sub-form.  I saw you do this on many form but I have not seen it done with a sub-form.  Please point me to one of the lessons that may show this.

V/r
Juan
Richard Rost  @Reply  
          
6 years ago
You've got a few different questions here and I'm not sure I understand everything, but I'll do my best. First, yes, as a table gets bigger, DLOOKUP on that table will slow down. That's inevitable. What you could do is make the set of records in it smaller with filters. For example, if you're working with products, add a product category combo box, and filter the products based on that using cascading combo boxes. Filter out unused products. Filter alphabetically. There are a million things you could do to shorten that list.

You should be able to perform functions like SUM in form headers, footers, and in subforms. But again without knowing exactly what you're trying to do, it's hard for me to say for certain. If you are trying to access a value stored on a subform FROM the parent form, it would be Subform.Form!FieldName.
Juan C Rivera OP  @Reply  
            
6 years ago
WOW after trying and trying I used the trouble shooting checklist... there is a method to the madness thank you Richard. I forgot that my subcost has an if condition.  regtime and non regtime.  if check mark is true then retime * qty, =false nonregtime * qty.  the result is stored in subcost.  I am converting it to a Val getting the end result.
I put the =val(subcost]) which has the if condition on the subform and I get the right number.  And it works, so I ref the text box in the footer of the subform it gives me the right number.

Sorry Alex I called it txet48

So I called text 48 on the main form on the footer section  ERROR
Subcost = Val(IIf([isregtime]=True,[regtime]*[qty],[nonregtime]*[qty]))
Text48 = ([subcost])   this returns the correct number for cost
=[EstimateTsubform].[Form]![text48]  this returns an error
Where did I go wrong?
I even used the expression builder tool thinking this will fix it... ahhhhhhhh need more coffiee

V/r
Juan
Richard Rost  @Reply  
          
6 years ago
All I see is a jumble of field names. Without knowing WHAT everything does, it's very hard to tell. Your names all LOOK fine, but make sure it's all spelled right and points to the right stuff. Without looking at the database in action its very hard to troubleshoot. Maybe MsgBox stuff each step of the way and see if the values come back right? Alex is right. Text48 makes it impossible to know what that is. Can you MsgBox it from a button in the same place as the field that's trying to read its value?
Juan C Rivera OP  @Reply  
            
6 years ago
Richard THANK YOU the msg box showed my eror got it to work now I can put this tto rest and do the check list .... Thank you for you

v/r
Juan
Richard Rost  @Reply  
          
6 years ago
Glad to help. Remember: spelling is important, and MsgBox is your friend. :)

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: 6/16/2026 7:32:49 PM. PLT: 0s