K
Kurt Heisler
This code will enable txtReason if cboFavColor = "Green," and disable
txtReason if cboFavColor <> "Green":
Me.txtColors.Enabled = IIf(Me.cboFavColor = "Green", -1, 0)
If I want to expand the criteria to include "Green" OR "Blue", can I
do something like:
Me.txtColors.Enabled = IIf(Me.cboFavColor = "Green" OR "Blue", -1,
0)
This doesn't work but I suspect it's because I have the syntax wrong.
Suggestions?
txtReason if cboFavColor <> "Green":
Me.txtColors.Enabled = IIf(Me.cboFavColor = "Green", -1, 0)
If I want to expand the criteria to include "Green" OR "Blue", can I
do something like:
Me.txtColors.Enabled = IIf(Me.cboFavColor = "Green" OR "Blue", -1,
0)
This doesn't work but I suspect it's because I have the syntax wrong.
Suggestions?