>The textbox HNo1is set to unbound, when the user click to select "I" on combo
>box CobDis1 then HNo1 will enable and I want recordsource to be set to fields
[quoted text clipped - 10 lines]
> End If
>End Sub
Set the ControlSource property to a string that's the name
of the field:
Me.HNo1.ControlSource = "h_no"
Shouldn't also clear the ControlSource when you disable the
control.
OTOH, why are you doing this? Wouldn't it be just as
effective to just disable the control (or make it
invisible)?

Signature
Marsh
MVP [MS Access]
MN - 02 May 2005 14:36 GMT
Thanks Marshall,
The end user they want Hno1 always disable except when thay select
CobDis1="I" then it is enable.
Also, on screen design they have CobDis2 and HNo2, then they can select
either CobDis1 or Cobdis2="I" then just 1 of them enable! That tricky for
me...! So you solve the problem for me... thanks a lot.
MN
> >The textbox HNo1is set to unbound, when the user click to select "I" on combo
> >box CobDis1 then HNo1 will enable and I want recordsource to be set to fields
[quoted text clipped - 22 lines]
> effective to just disable the control (or make it
> invisible)?