derekstewart
MIS
I have a form where you can enter an invoice and then the associated products subform. The products are controlled by a combo box tied to a primary key field. The user begins by typing the product into the combo. If they start to type and their product isn't in the list, they need to hit a button that triggers the add record form.
I'm having a problem with the keyed data currently in the combo box. If they key a partial or complete product number like 55555, realize it isn't in the list and hit the add button, I get an error because 55555 isn't currently in the list. To avoid the error the user needs to hit escape 3 times, which clears the combo box. Then they can hit the add button without the error.
Is there a way to delete, clear, etc. the info in the current field (the combo box) before (or during) the time they click the add record button? That way they could seamlessly avoid the error. Any help would be appreciated. Thanks.
I'm having a problem with the keyed data currently in the combo box. If they key a partial or complete product number like 55555, realize it isn't in the list and hit the add button, I get an error because 55555 isn't currently in the list. To avoid the error the user needs to hit escape 3 times, which clears the combo box. Then they can hit the add button without the error.
Is there a way to delete, clear, etc. the info in the current field (the combo box) before (or during) the time they click the add record button? That way they could seamlessly avoid the error. Any help would be appreciated. Thanks.