MattioMatt
Registered User.
- Local time
- Today, 23:44
- Joined
- Apr 25, 2017
- Messages
- 99
Hi all,
I'm having some problems with enabling/disabling a comboxbox control based on the result of a checkbox on the same form.
I currently have a checkbox control (chkStatus) which is locked so that the end user cannot change it, I then also have a combobox (cmboDASStatus). I'm trying to get it so that a combobox control property isn't enabled if a checkbox proptery is false and I am doing this through the form's OnLoad Event.
It sounds quite simple to do but it isn't working, the combobox property is enabled no matter what the result of the checkbox is.
Here is the code I am using:
Any ideas of where I am going wrong? Because it seems so simple I cannot understand why cmboDASStatus is enabled no matter on the result of the checkbox.
I'm having some problems with enabling/disabling a comboxbox control based on the result of a checkbox on the same form.
I currently have a checkbox control (chkStatus) which is locked so that the end user cannot change it, I then also have a combobox (cmboDASStatus). I'm trying to get it so that a combobox control property isn't enabled if a checkbox proptery is false and I am doing this through the form's OnLoad Event.
It sounds quite simple to do but it isn't working, the combobox property is enabled no matter what the result of the checkbox is.
Here is the code I am using:
Code:
If Me.chkStatus = False Then
Me.cmboDASStatus.Enabled = False
Else
Me.cmboDASStatus.Enabled = True
End If
Any ideas of where I am going wrong? Because it seems so simple I cannot understand why cmboDASStatus is enabled no matter on the result of the checkbox.
Last edited: