Zydeceltico
Registered User.
- Local time
- Today, 18:19
- Joined
- Dec 5, 2017
- Messages
- 843
Hi All -
I have a form with 3 required fields. When the form opens all controls are disabled except for the first of the 3 required fields & its BackColor is set to vbYellow drawing the user attention to that cbo. Also the "Save" button is disabled. So far so good.
The user makes a selection in this combo box which triggers the On Dirty event to enable the second of the required controls and sets the second req'd control's BackColor to Yellow. The After Update event of the first control sets the BackColor of the FIRST control to vbWhite.
Same thing happens on 2nd required control after it becomes enabled. It is first yellow; a value is entered; its BackColor becomes vbWhite & 3rd required control is enabled w/ BackColor = vbYellow - - this all works up to this point - - including - at this point when 3rd control becomes Dirty - the Save button is enabled as are all other controls on the form - - this all works.
What I can't get to work is to set the 3rd required control BackColor to vbWhite using exactly the same code and I cannot figure it out.
I've tried On Change. I've tried SetFocus to another control.
Thoughts?
Thanks!
Tim
I have a form with 3 required fields. When the form opens all controls are disabled except for the first of the 3 required fields & its BackColor is set to vbYellow drawing the user attention to that cbo. Also the "Save" button is disabled. So far so good.
The user makes a selection in this combo box which triggers the On Dirty event to enable the second of the required controls and sets the second req'd control's BackColor to Yellow. The After Update event of the first control sets the BackColor of the FIRST control to vbWhite.
Same thing happens on 2nd required control after it becomes enabled. It is first yellow; a value is entered; its BackColor becomes vbWhite & 3rd required control is enabled w/ BackColor = vbYellow - - this all works up to this point - - including - at this point when 3rd control becomes Dirty - the Save button is enabled as are all other controls on the form - - this all works.
What I can't get to work is to set the 3rd required control BackColor to vbWhite using exactly the same code and I cannot figure it out.
I've tried On Change. I've tried SetFocus to another control.
Thoughts?
Thanks!
Tim