Report, set visible property on Open

Experts, I am trying to set the visible of the field.  Not sure if I have something wrong or if the code should be in detail format.   The code doesnt seem to be firing.  

chkSentPPTSlide visible ppty is set to Yes

thank you.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    If Me.cboPPTNeeded = "No" Then 'cbo has row source "Yes";"No"
        Me.chkSentPPTSlide.Visible = False
    Else
        Me.chkSentPPTSlide.Visible = True
    End If
pdvsaProject financeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Are those TEXT values (i.e. "Yes" and "No"), or Boolean values?

If they're boolean, you'd have to do this:

If Me.cboPPTNeeded = False Then

Also, try doing this in the Print event instead of the Format event.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pdvsaProject financeAuthor Commented:
On Print works.  

I also can only see on Print Preview.  

they were text values

thx...
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I also can only see on Print Preview.  
Do you mean you cannot see it in the "Report" view? If so, that's by design - code doesn't run in Report view.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.