I have a combobox with three columns of data, I wish to loop through each row to find a particular value in the first column. I tried the following:
The line in blue gives me a Type Mismatch error. Any help would be appreciated.
Jack
Rich (BB code):
Private Sub Form_Current()
Dim iIndex As Integer
For iIndex = 0 To Me.cboRelationshipTypes.ListCount - 1
If Me.cboRelationshipTypes(iIndex).Column(0) = 7 Then
Me.cboRelationshipTypes.ListIndex = iIndex
Exit Sub
End If
Next iIndex
End Sub
The line in blue gives me a Type Mismatch error. Any help would be appreciated.
Jack