J
Jim Shaw
BlankIn my combo box's "NotInList" event code, I open a maintenance form (in
acDialog mode) to add the missing record to the underlying table. The
maintenance form does perform an explicit save of the added record via a
command button control. Upon return from the form, I set the event's
"Response" argument to acDataErrorAdded which should cause the combo box to
requiry. However, I get a VBA generated message that my item is not in the
list. When I close that message, the combo box drops down to show the added
table entry. If the requiry is working, which I believe it is from the
contents of the dropdown list, why am I getting this error message and how
can I not get it?
In case this is important, the combo box list is populated with a "SELECT
FacilityCode, FacilityName from tblFacility" statement. The first column is
hidden and the bound column is column 0. The value I'm entering into the
combo box is a new FacilityCode.
Thanks
Jim
acDialog mode) to add the missing record to the underlying table. The
maintenance form does perform an explicit save of the added record via a
command button control. Upon return from the form, I set the event's
"Response" argument to acDataErrorAdded which should cause the combo box to
requiry. However, I get a VBA generated message that my item is not in the
list. When I close that message, the combo box drops down to show the added
table entry. If the requiry is working, which I believe it is from the
contents of the dropdown list, why am I getting this error message and how
can I not get it?
In case this is important, the combo box list is populated with a "SELECT
FacilityCode, FacilityName from tblFacility" statement. The first column is
hidden and the bound column is column 0. The value I'm entering into the
combo box is a new FacilityCode.
Thanks
Jim