Check Box - Hide or Grey Out

K

kirstie adam

Hi,

I have a checkbox [Crane Reqired] which if is No then i want two other
checkboxes hidden or greyed out [Survey Sent] and [Survey Returned].

I can't get my code to work, i had been using

If me.Crane_Required = 0 then
me.Survey_Sent.IsVisible = False
else
me.Survey_Sent IsVisible = True
EndIf

Can nyone offer another suggestion or tell me what i have been doing wrong?

Thanks,

Kirstie
 
K

kirstie adam

Douglas,

I am running it in the AfterUpdate event of the combobox (sorry, just
realised it's not a check box) called [Care Required]

Kirstie

Douglas J. Steele said:
In what event are you running that code?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


kirstie adam said:
Hi,

I have a checkbox [Crane Reqired] which if is No then i want two other
checkboxes hidden or greyed out [Survey Sent] and [Survey Returned].

I can't get my code to work, i had been using

If me.Crane_Required = 0 then
me.Survey_Sent.IsVisible = False
else
me.Survey_Sent IsVisible = True
EndIf

Can nyone offer another suggestion or tell me what i have been doing
wrong?

Thanks,

Kirstie
 
K

Klatuu

If me.Crane_Required = 0 then
me.Survey_Sent.Visible = False
Else
me.Survey_Sent.Visible = True
EndIf

Or
me.Survey_Sent.Visible = Me.Crane_Required = 0


kirstie adam said:
Douglas,

I am running it in the AfterUpdate event of the combobox (sorry, just
realised it's not a check box) called [Care Required]

Kirstie

Douglas J. Steele said:
In what event are you running that code?

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


kirstie adam said:
Hi,

I have a checkbox [Crane Reqired] which if is No then i want two other
checkboxes hidden or greyed out [Survey Sent] and [Survey Returned].

I can't get my code to work, i had been using

If me.Crane_Required = 0 then
me.Survey_Sent.IsVisible = False
else
me.Survey_Sent IsVisible = True
EndIf

Can nyone offer another suggestion or tell me what i have been doing
wrong?

Thanks,

Kirstie
 
Top