Good morning people.
I am having some trouble with my Select Case structures.
I have a half a dozen Select Case structures in my project and the ListIndex keeps changing auotmatically.
When the user (me) clicks on a comboBox it run the corresponding code to the ListIndex for example 1.
Then it loops up to the top and the ListIndex becomes -1 and/or the program switches to anothe Select Case structure and the ListIndex is -1.
When the ListIndex becomes -1 it executes the Else code in each Select case structure.
Below is an example of my syntax.
Private Sub cmbgetinfo_Change()
Select Case cmbgetinfo.ListIndex
Case 1 'Report
Case 2 'Print
Case 3 'Do something
End Select
I was wondering if I should be using some other sub procedure besides _Change().
Has anyone run into this situation? DAVE
I am having some trouble with my Select Case structures.
I have a half a dozen Select Case structures in my project and the ListIndex keeps changing auotmatically.
When the user (me) clicks on a comboBox it run the corresponding code to the ListIndex for example 1.
Then it loops up to the top and the ListIndex becomes -1 and/or the program switches to anothe Select Case structure and the ListIndex is -1.
When the ListIndex becomes -1 it executes the Else code in each Select case structure.
Below is an example of my syntax.
Private Sub cmbgetinfo_Change()
Select Case cmbgetinfo.ListIndex
Case 1 'Report
Case 2 'Print
Case 3 'Do something
End Select
I was wondering if I should be using some other sub procedure besides _Change().
Has anyone run into this situation? DAVE