Не пойму почему выдается ошибка Text Property is read-only в следующем участке кода и как можно ее обойти:
cboPosition.Text = cboPosition.List(GetIndex(cboPosition, rs.Fields("AssignedPersonPositionID")))
Public Function GetIndex(ByRef oCombo As ComboBox, ByVal nID As Long) As Long
Dim i As Long
Dim nIndex As Long
nIndex = -1
With oCombo
For i = 0 To .ListCount - 1
If .ItemData(i) = nID Then
nIndex = i: Exit For
End If
Next i
End With
GetIndex = nIndex
End Function