Solved

Value list, combo box

Posted on 2014-09-03
4
421 Views
Last Modified: 2014-09-03
Experts, I have a combo box, text, value list, limit to list ppty with row source as "Reporting Requirements";"Borrower Undertaking"; "Conditions Precedent".  If the choice is not in the drop down list then a message box will appear asking if user wants to add the additional option.    

Is this an acceptable way to add choices or is another way by using Not In List codes?  I use the NOT IN LIST codes if I have many choices and they are all dumped into a sort of drop box table (not sure if that is proper lingo).  I am not sure if an issue could develop if you have a FE / BE setup.  I imagine both methods work ok.   In this case, I probably wont have more than 5 choices (listed the 3 above) so I assume Its not necessary to use NOT IN LIST codes.  

thank you
0
Comment
Question by:pdvsa
  • 2
4 Comments
 

Expert Comment

by:William Blake
ID: 40302107
It doesn't sound like you are having trouble getting the code to work, but here are two sites that might be of some help to you or others:
HERE and HERE

To answer your question, yes I believe this is an appropriate way to add choices to the combo box.  It should work if it is a value list or the result of a table / query. I have Access 2013 but out of the box without any coding if I change the property of the combo box of "Limit to List" to yes, I get a nice message that asks me if I want to add it to my list.  Of course you could do this manually too.  As far as a BE / FE solution, it shouldn't matter.  Hope this helps or let me know if I am way off base.

Good luck!
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40302311
This is not an appropriate way to handle lists that can be modified.  If the user can add items to the combo/listbox list then you must keep the list in a table in the BE.

I almost never give the user the option of adding items on the fly.  It is too easy for them to make a typo and then add the bad spelling as an alternate to the list.  This defeats the whole purpose of using combos and listboxes.  Better practice is to have a form where they can add items to the list and restrict the process to only certain people to better control the list contents.
0
 

Author Comment

by:pdvsa
ID: 40302383
ok thank you.  I believe I should not use the method I am using now and instead use the form method Pat referred to.   Let me know if I have misunderstood.
0
 

Author Closing Comment

by:pdvsa
ID: 40302620
thank you
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now