Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search combo values

Status
Not open for further replies.

vmon

IS-IT--Management
Feb 14, 2002
74
0
0
US
I want to search a combo box list of values for a specific value. Something like:

For I = 1 to X
cboMarkId(I) = "YOU FOUND IT".
Next I

I can't find the right syntax to get this done.

Thanks,
vmon
 
Have you tried

For Idx = 0 to cboCombo.ListCount - 1
If (cboCombo.ItemData(Idx) = "SearchValue") Then
MsgBox "You Found It"
End If
Next Idx


Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top