Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Combo Box Limit To List
Richard Rost 

17 years ago
Paula, I cover the OnNotInList event in Access 324, which I see you've taken. Unfortunately, if your combo box is BOUND to a field with an ID, there isn't any way you can NOT add the item to the related table and still show the value in the combo box.

You can do this if you are storing the value as TEXT in your table, and not a related ID. Create the combo box as normal, but instead of making the first column the ID value as I've always shown you, make the first column the VISIBLE text. Then store this in your field.

For example, let's say you've got a list of favorite movies. We'll call it MovieT. Each movie has an ID and MovieName.

Now in your employee table, EmployeeT, you want to store each employee's favorite  movie, but you don't want to limit it to the list. So, you make a FavoriteMovie field which is a TEXT field.

Now, on your Employee form, make a combo box that's bound to FavoriteMovie, and have it get it's list of values from the MovieT, but you WON'T be pulling the ID into the box. You're storing JUST the text. Now you can turn LimitToList off, and type the value in straight into the box if the value isn't in the list.

The DOWN SIDE to this is that you no longer have a relationship, and you'll be storing extra data (possibly redundant data) in your Employee table.

The PLUS SIDE is that users can pick from the list OR type in whatever they want.

Does this help?

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: 7/26/2026 6:44:17 PM. PLT: 0s