Visibility Macro

pwicr

Registered User.
Local time
Today, 00:23
Joined
Sep 22, 2011
Messages
144
:banghead:I'm trying to get a box to only show if the state of Montana is there.

here is what I have.
 

Attachments

  • pway visibility.jpg
    pway visibility.jpg
    61.7 KB · Views: 153
Remove both of the

Me.Visible =

parts.

The value for the macro is either going to be -1 or 0

So,

IIf([STATE/PROV]="MT", -1, 0)
 
Remove both of the

Me.Visible =

parts.

The value for the macro is either going to be -1 or 0

So,

IIf([STATE/PROV]="MT", -1, 0)


Still not working. I have it as a label in my report and I have it set up under report properties "On Open"

I have the label associated with the control "State/Prov"
 
The On Open event is not the one to use. You would want it in the ON FORMAT event of the section where the controls are. If it is the Detail Section, then the macro should be called in the ON FORMAT event of the Detail Section. And, if you use Report View as well, it would need to be in the ON PAINT event as well.
 
The On Open event is not the one to use. You would want it in the ON FORMAT event of the section where the controls are. If it is the Detail Section, then the macro should be called in the ON FORMAT event of the Detail Section. And, if you use Report View as well, it would need to be in the ON PAINT event as well.

here's what i have now.
 

Attachments

  • DETAIL ON FORMAT.png
    DETAIL ON FORMAT.png
    51.7 KB · Views: 115
  • DETAIL ON PAINT.png
    DETAIL ON PAINT.png
    52.5 KB · Views: 123
  • LABEL PROPERTIES.jpg
    LABEL PROPERTIES.jpg
    98.3 KB · Views: 124
I'm feeling like a giant idiot that I can't get this to work.
 

Users who are viewing this thread

Back
Top Bottom