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 
Trademark casing
Liem Khen 
    
3 days ago
I want to display in my subform CURRENTPRICE and CURRENTCASING
specific customers have special price and sometimes wants a specific trademarkcasing
how to solve that by replacing the dlookup() (function)
thanks
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago
but as I open the orderf there appears a warning
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Donald Blackwell  @Reply  
        
3 days ago
You misspelled "OrderDetailF" - you're missing the "l"
Alex Hedley  @Reply  
           
3 days ago
Previous Thread: Trademark casing
Liem Khen OP  @Reply  
    
3 days ago
Oooo ...reckless indeed
John Davy  @Reply  
         
3 days ago
Great eye Donald!  John
Liem Khen OP  @Reply  
    
3 days ago
unfortunatly,IT only shows up the current price and current casing all products
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago
how to show only the order,if only one product do not show up the rest
Liem Khen OP  @Reply  
    
3 days ago
Should we still use here
Liem Khen OP  @Reply  
    
3 days ago
Sorry...it showed up all products the same specprice and speccasing
How come
Liem Khen OP  @Reply  
    
3 days ago
I meant specprice (or price-default) and speccasing (or trademarcasing-default) were the same for all products
John Davy  @Reply  
         
3 days ago
Hi Liem, Can you show us the code that you are using. It is impossible to analyze without seeing the vba that is behind, forms, buttons, queries and modules.  John
Liem Khen OP  @Reply  
    
3 days ago
Should we still use IIF (ISNULL....
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago
I wonder why the query showed currentprice and the currentcasing to all products
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago
using dlookup it worked correctly
Donald Blackwell  @Reply  
        
3 days ago
currentcasing subquery... Your criteria is missing something....

You have custid=[FORMINFORMATION] and [MOREFORMINFORMATION]. You don't have the 2nd field name (i.e. prodid = ) or whatever you are trying to lookup
Liem Khen OP  @Reply  
    
3 days ago
If in the currentprice I add prodid=forms!orderf!orderdetailf.form!productnamecombo)
The result is blank and the currentcasing is filled the same casingname as above
Liem Khen OP  @Reply  
    
3 days ago
The same to all products
Liem Khen OP  @Reply  
    
3 days ago

Liem Khen OP  @Reply  
    
3 days ago
also in this subform,it shows the same price/specprice and trademarkcasing/speccasing
previously as we used iif(isnull... there appeared precisely for their price or casingname (specprice or price and speccasing or tramdemarkcasing)
Liem Khen OP  @Reply  
    
3 days ago
here if the customer no specprice or speccasing the result are blank
Liem Khen OP  @Reply  
    
2 days ago
Si DON-ALex-john could i continue asking, it is said "the same question cannot be twice"
Thanks
Richard Rost  @Reply  
          
2 days ago
Liem First, thank you for being a Gold Member and for supporting the site. I appreciate it, and I'm glad to hear that the videos have helped you improve your database.

I wanted to jump in with a couple of general comments that might help both you and anyone else reading this thread.

First, regarding the forums: this is exactly where technical questions belong. I receive far too many technical support emails every day to answer them individually, so if you have questions about building your database, please post them here in the forums. We have a fantastic group of moderators and experienced members who volunteer their time to help, and you'll often get several different perspectives on a problem.

Please remember, though, that the forums are staffed entirely by volunteers. Your membership gives you access to my videos and other membership benefits, but it doesn't include one-on-one consulting or guaranteed technical support. Everyone here helps because they enjoy helping others learn, and I'm very grateful for everything they do.

Another suggestion: try to narrow each question down to one specific problem. Over the course of these threads you've posted a very large number of screenshots. While I appreciate that you're trying to provide enough information, too much information can actually make it harder for people to find the real issue. A single screenshot of the relevant query, SQL statement, form, or VBA code is usually much more helpful than twenty screenshots of the entire database.

Also, if your example can be simplified into something everyone understands, it becomes much easier for people to help. For example, instead of using your actual business with trademark casings, try to reduce the problem to something like Customers, Orders, Products, and Order Details. That's why I use those examples in my videos. Everyone understands those relationships, so we can focus on the database problem instead of trying to understand the business rules first.

As for the technical side of your question, I think you've become focused on replacing every DLookup with a subquery. That's probably not the right goal. In many cases, the best solution isn't a subquery at all. It's a properly designed query using joins. Without knowing your complete database structure and exactly what your business rules are, it's difficult to say which approach is best.

I also believe the TechHelp video I made, DLookup Slow, covers the concept you're trying to learn. The important lesson isn't simply "replace DLookup with a subquery." It's understanding how to retrieve related data efficiently, and in many situations that means using joins instead of either DLookups or subqueries.

Finally, if what you're really need is someone to work directly with your database one-on-one, you might consider hiring an Access developer. I don't do consulting myself anymore, but there are several experienced developers listed on my Access Developer Network who may be able to help.

Keep asking questions, but try to make each one as focused as possible. That will make it much easier for everyone here to help you, and you'll get better answers much more quickly.

Thanks, and keep learning!
Add a Reply Upload an Image
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/26/2026 2:52:21 PM. PLT: 0s