Click on check box, make text field enable.

vividor

Registered User.
Local time
Today, 17:54
Joined
Aug 5, 2002
Messages
31
Hey guys, I am kind of loss with all those instructions...
My Problem is more simple than the comments I read in the forum.
I got a check box named "New Page" and belog that a field text "Comments". I want to enable the text field "comments" when I click on the check box "New Page, in the mean time the text field should ne disable...

can some one help me on this?
 
In the After Update event of the check box, put:
Code:
If [New Page].Value = 0 Then
Comments.Enabled = False
Else
Comments.Enabled = True
End If
 
Last edited:
UniqueTII, i Typed everthing you suggested on the "After Update" section on the properties but when I runned the Form and then click on the check box I received a error message that Microsoft can't find MACRO...
I did not know that I need it to create a macro? is that correct?
 
Please don't start another post, just continue with the existing one
 
You don't need a macro to make this happen as the code above should work fine.

My guess is that you either do not have the code placed in the "after update" event of the check box control or you are not referencing the names of your controls properly.

First, make sure that the code is in the correct place.

Second, make sure that the "New Page" value is set to the name of your checkbox control and that "Comments" is set to the name of your comments field.

If those are both set correctly, then the code should work.

HTH
 
Make sure it says [event procedure] in the After update field.
 

Users who are viewing this thread

Back
Top Bottom