Solved

Value list, combo box

Posted on 2014-09-03
4
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 38

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

690 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