Check Box - Hide or Grey Out

  • Thread starter Thread starter kirstie adam
  • Start date Start date
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top