X
xpnovice
Hi,
Access 2000/2002
On my customer details form I have a combo box which is used to find a
customers surname and customer reference number and then display the related
customer details etc. This all works fine.
I want to add a macro to the "Not in List" event to bring up a message box
whenever an unregistered surname/ref number is entered. From this message
box the user will then opt to open a new customer account form or cancel the
find action.
The macro and message box work fine, but because I still have the unlisted
data in the combo text box I get the default message box "The text you
entered isn't an item in the list" requiring the user to click the OK button
and the Esc key to clear the unlisted data.
Is there any way I can I include an action in my macro (or some other means)
to clear the unlisted data from the combo text box to free the event
without the user needing to manually OK the default message box and then
delete the unlisted name from the combo text box.?
Thanks
John
Access 2000/2002
On my customer details form I have a combo box which is used to find a
customers surname and customer reference number and then display the related
customer details etc. This all works fine.
I want to add a macro to the "Not in List" event to bring up a message box
whenever an unregistered surname/ref number is entered. From this message
box the user will then opt to open a new customer account form or cancel the
find action.
The macro and message box work fine, but because I still have the unlisted
data in the combo text box I get the default message box "The text you
entered isn't an item in the list" requiring the user to click the OK button
and the Esc key to clear the unlisted data.
Is there any way I can I include an action in my macro (or some other means)
to clear the unlisted data from the combo text box to free the event
without the user needing to manually OK the default message box and then
delete the unlisted name from the combo text box.?
Thanks
John