I am trying to find a simple solution for iterating through all the values in a field not only those that are unique. I have come across examples relating to this topic however they all seem to use something along the lines of :
pEnumVar = pData.UniqueValues
value = pEnumVar.MoveNext
For i = 0 To pData.UniqueValueCount - 1
ComboBox1.Items.Add(CStr(pEnumVar.Current)) '<--- this should add the values to your cmbLot Control
value = pEnumVar.MoveNext
Next
or pEnum = pDataStats.UniqueValues
pEnum.Reset()
Do While pEnum.MoveNext
ComboBox1.Items.Add(pEnum.Current)
Loop
Is there a way to request all values instead of UniqueValues? thank you