Hi, wanted to do a search to see if solution exists, but the search is down. Anyway, I have a field in a table name "MARINEorFRESHWATER". The field can be empty or contain a list separated by colons (i.e freshwater; brackish; marine).
I'm trying to highlight the values in an option box based on the list. I'm not sure how to loop through this list though. The top for loop in the below code is what I'm stuck on:
I'm trying to highlight the values in an option box based on the list. I'm not sure how to loop through this list though. The top for loop in the below code is what I'm stuck on:
Code:
If rs.MARINEorFRESHWATER <> "" Then
'Loop through rs.MARINEorFRESHWATER List
For i = 0 To Me.listMarine.ListCount Step 1
If Trim(Me.listMarine.ItemData(i)) = Trim(Me.listSitesEdit.Column(3, i)) Then
Me.listClass.Selected(i) = True
End If
Next i
'End List Loop
Else ' Select the empty value
End If