Form Control .Enable ....help

TimE

Registered User.
Local time
Today, 09:31
Joined
May 17, 2005
Messages
55
Sorry to bother everyone with something that is probably real simple....

I would like to disable one control if another does not equal a certain value.

Do I set the control to enable=No and then use OnCurrent and afterupdate?

As always, I am confused and could use some assistance.

Tim E.
 
In the afterupdate event of the one control, you would put code to check its value and set the other accordingly. e.g

If control1.value <> 1 then

control2.enabled = false

Else

control2.enabled = true

end If

Is that any use to you?
 
Remember that you can not disable or hide a control that has the focus. You must set the focus to anther object before you disable or hide the control.
 

Users who are viewing this thread

Back
Top Bottom