Here is how I load my combo box...
Do While Not DBRec.EOF
cmbLoc.AddItem DBRec("Name"
cmbLoc.ItemData(cmbLoc.NewIndex) = DBRec("LocID"
DBRec.MoveNext
Loop
now after i load it i need to set the value based on the LocID i have.
Something like cmbLocation.ListIndex = LocID
obviously this doesnt work, help!
thank you.
Do While Not DBRec.EOF
cmbLoc.AddItem DBRec("Name"
cmbLoc.ItemData(cmbLoc.NewIndex) = DBRec("LocID"
DBRec.MoveNext
Loop
now after i load it i need to set the value based on the LocID i have.
Something like cmbLocation.ListIndex = LocID
obviously this doesnt work, help!
thank you.