I need suggestions on how to compare a string from a textbox to a combo box
list? I then need to take any items that the string is similiar to and display them in a message box? Im very confused on how to do this? I would appreciate any input> ;)

The InStr("String", "String you are looking for") will return > 0 if a string is found.

Hence if StingA = "a b c d xx d c b a"

Dim StringSearch as integer

StringSearch = Instr(StringA, "xx")

StringSearch should return 9 [the position in the string of "xx"].

Now all you have to do is use the ComboBox list index property to search each of the combo boxes values and identify if the string is present in them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.