Computer Learning Zone CLZ Access Excel Word Windows

Don't know if it's good or bad that a Google search on "Big Bang Theory" lists the sitcom before the origin of the Universe

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Microsoft Access 302    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Domain Aggregate Functions
Robert Whishaw 
    
11 years ago
Hey Richard
I'm having a ton of difficulty getting the DLOOKUP functions to work. Even jumping all the way back to the Expert 10 course they never worked & now that your elaborating on them I really need to get them working.
My OrderF is setup exactly the same as the PCResale version, however; the OrderF DiscountRate & TaxRate boxes are being looked up depending on the CustomerID in the CustomerCombo box. The control source for DiscountRate & TaxRate refer back to their OrderT fields respectively.

The default value for DiscountRate: =DLOOKUP("DiscountRate","CustomerT","DiscountRate=" & CustomerCombo)

The default value for TaxRate:
=DLOOKUP("TaxRate","CustomerT","TaxRate=" & CustomerCombo)

Both of these boxes on the OrderF have #Error in them. Neither of these boxes are sourcing text strings so my quotes should be ok as they are.

The VBA DLOOKUP for TaxRate you explained in this video also doesn't work on my OrderDetailF. All other fields such as ItemID, Description, Price1 etc copy onto the OrderDetailF except TaxRate.  I've spent the past 3 nights scanning forums high & low without success. Your help would be much appreciated



Reply from Alex Hedley:

Should
DiscountRate: =DLOOKUP("DiscountRate","CustomerT","DiscountRate=" & CustomerCombo)
not be
DiscountRate: =DLOOKUP("DiscountRate","CustomerT","CustomerID=" & CustomerCombo)

What is being stored in the bound column of the CustomerCombo.
If it is CustomerID your DLOOKUP will be saying, if CustomerID = 1
DiscountRate: =DLOOKUP("DiscountRate","CustomerT","DiscountRate=1")
Therefore is unlikely to work since DiscountRate is likely to be a fraction.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Microsoft Access 302.
 

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/22/2026 3:15:44 PM. PLT: 1s