Solved

Value list, combo box

Posted on 2014-09-03
4
410 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
Comment Utility
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 34

Accepted Solution

by:
PatHartman earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

728 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

10 Experts available now in Live!

Get 1:1 Help Now