Hi to everyone out there in VB-Land! The code I have is working fine, but I'm trying to idiot-proof my userform...if that's possible. So, here's the deal:
I have a userform with the following controls:
1. a combobox that always starts with 9 options.
2. a command button called "SAVE"
3. a command button called "Reports"
The users make a selection from combobox, then they should click "SAVE" before making another selection in combobox. So the 1st time through the combobox they can click in combobox b-4 the "SAVE" button but everytime after that they should have to click "SAVE" between selections from the combobox list.
The same thing goes for the "Reports" button. If the user made a selection in the combobox, I want them to click "SAVE" before they can click on "Reports".
Is there some property i could test for to see if these two buttons had been clicked? I am using listindex to take out the previously selected values in the combobox so if i could come up with the number of items in the list I'd know if the combobox was clicked.
Any suggestions, tips, tricks would be helpful. THANKS!
G-Man
I have a userform with the following controls:
1. a combobox that always starts with 9 options.
2. a command button called "SAVE"
3. a command button called "Reports"
The users make a selection from combobox, then they should click "SAVE" before making another selection in combobox. So the 1st time through the combobox they can click in combobox b-4 the "SAVE" button but everytime after that they should have to click "SAVE" between selections from the combobox list.
The same thing goes for the "Reports" button. If the user made a selection in the combobox, I want them to click "SAVE" before they can click on "Reports".
Is there some property i could test for to see if these two buttons had been clicked? I am using listindex to take out the previously selected values in the combobox so if i could come up with the number of items in the list I'd know if the combobox was clicked.
Any suggestions, tips, tricks would be helpful. THANKS!
G-Man