Hi! I have a small form that exists for the sole purpose of adding/editing/deleting short descriptive names (such as "Add Privacy Notice") that are to be used on another form for the sole purpose of generating names that are used on files.
The plan for this form is to have an unbound listbox who's source is either the table (a 2 column--auto# key, and name) or a query that takes just the information from that table (whichever I need to use). I want the user to be able to click an entry in the list box, and have it appear in a textbox below, which would allow it to be edited. So far, I've left that textbox unbound as well, because it needs to be able to accept existing names for editing, and take new entries and add to the table.
I have scoured Google, and tried every combination of VBA and setting sources that I can find, and the best I can get in the textbox is "#NAME?". What is the best way to enable this textbox both take the value the user selects from the listbox, OR take completely new data the user enters, check it against the table to make sure it doesn't already exist, and if not, add it?
A couple of other things I'm trying to do with this as well, are to enable the user to delete these records (I was thinking select item from listbox, hit delete button), and to alphabetize the entries in the listbox. I've tried alphabetizing the table, and using a query, but I just can't get the entries to appear in order in the listbox. Any suggestions?