It looks like the -1 was used as a value for "Not Used" in the combo which is added when the combo is created, thus the test was to exclude Not Used from the search.
I changed the code to look at selected index which seems to work ok. i'll let you know if it doesnt.
llReturn = .SelectedIndex > 0
Paul
Oh well, I've changed that line to this:
llReturn = .SelectedValue
Since you're building the source code, I'll let you change it on your end, too. But if you want me to post the DLLs for it, just let me know
the combo box's value member is a string and the field to be searched is a string ,
It looks like it failing on
llReturn = CType(.SelectedValue, Integer) <> -1
P