I am designing a new db that involves a couple of lookup lists. One of the options on my list is Other:.
When Other: is selected, I need to be able to write-in the answer. How do I write that command?
I am designing a new db that involves a couple of lookup lists. One of the options on my list is Other:.
When Other: is selected, I need to be able to write-in the answer. How do I write that command?
Is this a multi-column combobox with hidden ID field and therefore displays alias description? What you want probably won't work with that.
If not saving ID value then could set combobox LimitToList property to No and user can type in whatever they want.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Yes, it is a multi-column list with hidden ID field. Not sure I understand your answer. Are you saying I can't use the hidden ID column? The source table is based on the hidden column (corresponding number).
Attachment 16861Only the facility name appears on the form, but when Other is selected, need to be able to write in.....
There is no ID in the lookup table for user 'write in' value - how do you expect an ID to be saved? Unless you want to allow user to add records to the lookup table 'on-the-fly' (and that gets a little complicated), free entry won't work with this.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
So can I add some kind of GoTo command when Other is selected that would bring up a separate field?
Could just have another textbox bound to a field for the additional descriptive input, no code required.
Alternative is to save descriptive value instead of ID, something I do for very short descriptors.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
so sorry. I don't mean to be dense, but I don't understand what you mean by saving the descriptive value...does that mean adding another descriptor to my lookup table? Do you mean to save a new lookup? Lost in access - kayt
I mean don't even have the ID in combobox RowSource, I mean save the alias descriptive text value from the lookup table. How many and what fields are in the lookup table?
Post the combobox RowSource SQL statement.
I tried downloading the attachment in your post and get error 'Invalid attachment'.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
That may be one way of looking at it. If you want users to select Other and also provide specifics on what 'Other' really is, then create another field bound to textbox for input of that free-form info.
Otherwise, get rid of the Other item and set up a procedure for users to add new Facility Name records to the lookup table 'on-the-fly' - that's what the NotInList event is for. Here is one example http://www.databasedev.co.uk/not_in_list.html
Advise not to use spaces and special characters/punctuation (underscore is exception) in naming convention. Better would be ARIC_Num.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thank you soooo much! This is most helpful. I will try it out and see how it works....
Thanks again,
-kayt