P
phuile
I have a combobox that allows users to select data from a lookup table.
When the user enters data that is not in the dropdown list the
NotInList event fires so I can provide code to add the new data to the
lookup table and repopulate the list.
However, I don't want to process the data as each combobox is updated.
I want to wait until the user has updated the entire record before
processing the fields that fired the NotInList events. (I can track
which fields these are by setting a flag when the event occurs.)
I might need to do this, for example, because I need the values from
subsequent fields to properly add the data to the lookup tables.
How can I do this? I need to defeat the NotInList event on each
individual combobox so that the user can move on to the subsequent
fields. Irritatingly, the combobox dropdown automatically opens after
the NotInList event terminates even if the event response is set to
acDataErrContinue. And the field value has to be cleared before the
next field can be selected.
Does anyone have any ideas on how to work around this problem?
Thanks.
Petre.
When the user enters data that is not in the dropdown list the
NotInList event fires so I can provide code to add the new data to the
lookup table and repopulate the list.
However, I don't want to process the data as each combobox is updated.
I want to wait until the user has updated the entire record before
processing the fields that fired the NotInList events. (I can track
which fields these are by setting a flag when the event occurs.)
I might need to do this, for example, because I need the values from
subsequent fields to properly add the data to the lookup tables.
How can I do this? I need to defeat the NotInList event on each
individual combobox so that the user can move on to the subsequent
fields. Irritatingly, the combobox dropdown automatically opens after
the NotInList event terminates even if the event response is set to
acDataErrContinue. And the field value has to be cleared before the
next field can be selected.
Does anyone have any ideas on how to work around this problem?
Thanks.
Petre.