Solved

Access - Allow Value List Edits - Default MS Error Message

Posted on 2014-01-12
8
857 Views
Last Modified: 2014-01-17
Good morning all (or afternoon whereever you are)

I have a Form with a few unbound comboboxes.  Haven't used the "allow value list edits" feature on any of my forms before but wanted to try it.

If the user types the particular number they want selected in the combobox (instead of selecting) it appears that the "Allow Value Edit list" is working if I choose the default Microsoft error message to add to the list.  Since in the "List Items Edit Form" I've selected the form I created to add new items to the table that the combobox is populated by the form is opening properly.

However,
Is there a way to create my own "Error Message" that pops up when they key a number that's not already in the list?  I think MS's default one looks ominous giving the appearance that everything's about to blow up.????

Also, since that feature opens a new form where the table is updated, is there a way that that combobox gets filled in with that number I just input into the table?
0
Comment
Question by:wlwebb
  • 4
  • 3
8 Comments
 
LVL 39

Expert Comment

by:als315
ID: 39774937
Look at this sample
DBlist.accdb
0
 

Author Comment

by:wlwebb
ID: 39775125
Als315
when I click on the sample the browser wants to open it in a new browser window.
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 39775364
This is one of those - sounds good on paper "features" that turns out to be a double edged sword.  In a single user database, it would work as expected.  The new value would be saved and would show the next time you dropped won the list.  However, in a multi-user database, this is undesirable behavior since it only changes the FE where the change was made.  It is not saved in the database and will not be seen by other users plus it will be completely lost when the FE is replaced with a new version.

If you want the users to be able to update the value lists on the fly, they MUST be stored in a table so that all users are working with the same set of data and when userA adds something to the list, userB sees it.  To do this, set the limit to list property to Yes and then in the NotInListEvent add code to capture the new value and add it to the table.  You also have the ability to open a form and you would use that method if the lookup list needed more than a single column.

Personally, I don't like letting the user update combo lists on the fly.  It makes them lazy and they create frequent duplicates.  So, I have a complete mini-app that I add to all my applications that gives them an interface to use to manage all their lookups.  I generally restrict updates to only users with admin permissions so not everyone can just add new items to a list.  Of course, this works best with mature lists or lists that are not changed frequently.  In some cases, you might deviate and allow direct updates if you were adding items frequently.
0
 

Author Comment

by:wlwebb
ID: 39775738
I am also using the "List Items Edit Form" in A2007 to launch the form I've created when the list populating the dropdown needs to be updated.  Thereby, at least in my mind, preventing duplicates, bad data etc.....

It's not a "value list" that its updating.  It IS updating the table.

My question though was how to replace MS's ominous apocalyptic looking warning that pops up.

Do you have to essentially code your entire test of if the input value is in the table and if not display a message box and launch the form

OR

Can you just override MS's error that pops up with you own Msgbox with a bit of code, leaving MS's remaining internal procedure of what happens with "Allow Value List Edits" and "List Items Edit From"
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 39

Expert Comment

by:als315
ID: 39776009
wlwebb: download or open - is function of your browser. You should be able to save this file
0
 

Author Comment

by:wlwebb
ID: 39776142
Using firefox....  No Option when I double click or even right mouse click on the file.  It just opens in a browser window with a bunch of symbols... no option to download
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 39776779
0
 

Author Closing Comment

by:wlwebb
ID: 39787909
Thanks Als.!!!!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

896 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

17 Experts available now in Live!

Get 1:1 Help Now