Hi! I want to enable/disable a checkbox based on the value of a combobox. More specifically, if the combobox values are "3", "4", "7" or "8", then the checkbox is enabled.
I placed the following code in my combobox's AfterUpdate and in the form's OnCurrent, and it works:
But when I modify it to
the code stops working.
Please, help! This is driving me crazy and I tried everything I could think of :banghead:
I placed the following code in my combobox's AfterUpdate and in the form's OnCurrent, and it works:
Code:
If COMBO = "3" Then
Me.CHECKBOX.Enabled = True
Else
Me.CHECKBOX.Enabled = False
End If
Code:
If COMBO = "3" Or "4" Or "7" Or "8" Then
Please, help! This is driving me crazy and I tried everything I could think of :banghead: