Command Button Disable Issue

mlai08

Registered User.
Local time
Yesterday, 23:44
Joined
Dec 20, 2007
Messages
110
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
 
Those are just my typos on the thread. I am sure the wordings are correct when I use those codes in the database.
 
Do not post snippets but rather the entire subroutines. Are those subroutines properly wired to the events?
 
It ended up that there are some other conflicting codes on the button which forbid it from acting properly. I have debugged the codes.

Thanks everyone for the response.
 

Users who are viewing this thread

Back
Top Bottom