I have a continuous form in a database showing employee information on each from and want to enable a command button only when a particular check box is ticked.
However, the following codes do not have any effect on the button neither under the Form_Open nor Form_Current event. The button is always enabled.
If Me.checkbox = Ture then
Me.cmdButton.Enabled = True
Else
Me.cmdButton.Enabled = False
End If
It works perfectly when I use similar codes for the Visible properties
If Me.checkbox = Ture then
Me.cmdButton.Visible = True
Else
Me.cmdButton.Visible = False
End If
It would be much appreicated if anyone can help me to resolve this issue?
Thanks
However, the following codes do not have any effect on the button neither under the Form_Open nor Form_Current event. The button is always enabled.
If Me.checkbox = Ture then
Me.cmdButton.Enabled = True
Else
Me.cmdButton.Enabled = False
End If
It works perfectly when I use similar codes for the Visible properties
If Me.checkbox = Ture then
Me.cmdButton.Visible = True
Else
Me.cmdButton.Visible = False
End If
It would be much appreicated if anyone can help me to resolve this issue?
Thanks