Error 3164 after uipdate of query-based RowSource fro combo box

G

GeneDenver

I have a combo box (cboPartNo) that is set up so that if a part number is
entered into it that is not contained in the Row Source, the NotInList event
is fired, which takes the user to another form (UnstockedInventory) for entry
of applicable information for the new part. When the new record is saved in
UnstockedInventory, an append query is generated that creates a base record
in the Inventory table from which the RowSource for cboPartNo is generated.
The code then does a docmd.requery of cboPartNo and the new part number
appears in the dropdown. However, when the user then attempts to exit
cboPartNo, he gets an "Error 3164" and is not allowed to exit the combo box
with the choice of the new part, even though it appears in the dropdown.
What am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top