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 
Hiding Zero Values in Combo Box
William Campbell 

4 years ago
Hi,

When picking items to dispatch I have a ComboBox which shows product name/qty/storage bin. Once chosen, it shows the product name.

I'm looking at minimizing data in the ComboBox by removing products with zero stock at hand. My only problem is when I change the criteria to show >0 for stock at hand then it removes all already chosen selections where the stock is currently zero, this could be from an order from two months ago when the stock was there.

Any ideas to have the value chosen remain and still be able to sort by the criteria would be appreciated! Thank you.
Kevin Yip  @Reply  
     
4 years ago
To do that, your criterion needs to include not only items whose stock > 0, but also items that have been previously selected.  Maybe including some kind of DLookup() function in your criterion might do it, since selected products should be present in one of your tables.  For instance:

SELECT ProductID FROM StockTable WHERE Stock > 0 OR DLookup("[ProductID]", "ChosenProducts") Is Not Null;
Richard Rost  @Reply  
           
4 years ago
Do you have the combo box listed in each row of your order details (subform)? If so, any changes to that data will effect all existing records. What you need to do is copy the product data (including the ID, name, price, etc.) to the order details table as the item is selected. I cover this in Access Expert 22.

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