I have a dropdown data combo box that lists a project number. I want to be able to select a project number in the combo box then assign it to a global variable. The project number, lets say 8815, should then be stored in the global variable gloCurrProjNum. I've written the code but i keep getting the list number (1) instead of the actual project number (8815). Heres the code:

Private Sub DataCombo1_Click(Area As Integer)
If Area = dbcAreaList Then
glocurrProjNum = DataCombo1.SelectedItem
End If
End Sub

Can anyone see what i'm doing wrong?