combo lostfocus

T

Torilyn73

I need someone to please walk me thru how to set this even. I have a
combo box and I want it to return to the default value when the user
clicks somewhere else...be it in the form or another program. I have
no clue how to do this. Can someone please walk me thru this. I can
provide you with whatever information you need.

Thanks!
 
J

Jonathan

Hi Torilyn,
You could consider using the combobox_exit event. In design view, select the
control's exit event from the list of event properties. Click the build
button (...) and then use the following example code.

private sub myCombobox_exit()
with myCombobox
..value=.default
end with
end sub
 
Top