Can someone tell me why this code works exactley the opposite of the way I thought it should?
I have a combobox (cbKeyWords). I want to make sure tbAddEdit.Text does not already exist before I save. To me I should be testing for a False result not True. But the above code, goes to the msgbox if findstringexact=false and saves the data if it's true. Am I crazy or am I missing something? Shouldn't FindStringExact return false if it's not found? thanksCode:If cbKeyWords.FindStringExact(tbAddEdit.Text) = True Then ' Save entry to database else MsgBox("Keyword Already Exists") End If




Reply With Quote