Zach Ahmed
Jun 7th, 2004, 08:06 AM
Hi All:
How can I select the Listindex of a combobox or listbox?
I am populating the combobox in the following manner:
For i = 1 To oRecData.RecordCount
With Form2.cmboevebldg
sDesc = oRecData.Fields("Location_Name") & Space(60) & "$" & CStr(oRecData!Location_ID)
.AddItem sDesc
.ItemData(.NewIndex) = oRecData!Location_ID
End With
oRecData.MoveNext
Next i
I need the location_ID
Thanks:afrog:
How can I select the Listindex of a combobox or listbox?
I am populating the combobox in the following manner:
For i = 1 To oRecData.RecordCount
With Form2.cmboevebldg
sDesc = oRecData.Fields("Location_Name") & Space(60) & "$" & CStr(oRecData!Location_ID)
.AddItem sDesc
.ItemData(.NewIndex) = oRecData!Location_ID
End With
oRecData.MoveNext
Next i
I need the location_ID
Thanks:afrog: