if your combo box is bound and you need that combo box for your records,
create an unbound combo box and use for your purpose here or
just unbind your combo box ( remove the entry in the control source property )
Main Topics
Browse All TopicsMy overall thinking here must be incorrect. Any action that you can suggest would be most gratefully received. I am self taught-know some things well and other not at all.
I have a combo box where the user enters an SSN.
On a button click, the entered SSN is checked against a table of SSNs--If the SSN exists the user is offered the opportunity to edit the existing record; if the SSN does not exists they are offered the opportunity to enter a new record.
However, if the SSN exists and the user does NOT want to edit the existing record--here I snag.
I have placed a msgbox ("Do you want to enter another SSN?", the No click works find. However, I cannot get the Yes click to clear the SSN combo entry. This code (plus validation) loaded in the BeforeUpdate event. My aroadblocks are_
I can't clear the combo box display (I have been trying to trigger in Before Update).
If the user wants to enter another SSN I can't get the AfterUpdate Event not to run (I thought that if I reset the cbo value to Null or something I could test for it in the AfterUpdate and exit sub).
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: peter57rPosted on 2009-11-05 at 08:51:59ID: 25751408
You need to do the 'ask user' process in the afterupdate event OR in the before update event you set
Cancel = true to prevent the update.