Hi,
I am trying to hide some labels whenever the fields are not being used. I go into the report properties and go to the events tab, then go to Activate and I put in the following code:
If [ReasonforAddendum] = Null Then ReasonforAddendum.Visible = False
If [ReasonforAddendum] <> Null Then ReasonforAddendum.Visible = True
If [ReasonforAddendum] = Null Then ReasonLabel.Visible = False
If [ReasonforAddendum] <> Null Then ReasonLabel.Visible = True
It seems to take it just fine but it doesn't take the labels off the screen. If I try to put it in the "On Open" event, it gives me an error and says that the fields do not exist. What am I doing wrong, and how can I correct it?
Thanks,
Dave
I am trying to hide some labels whenever the fields are not being used. I go into the report properties and go to the events tab, then go to Activate and I put in the following code:
If [ReasonforAddendum] = Null Then ReasonforAddendum.Visible = False
If [ReasonforAddendum] <> Null Then ReasonforAddendum.Visible = True
If [ReasonforAddendum] = Null Then ReasonLabel.Visible = False
If [ReasonforAddendum] <> Null Then ReasonLabel.Visible = True
It seems to take it just fine but it doesn't take the labels off the screen. If I try to put it in the "On Open" event, it gives me an error and says that the fields do not exist. What am I doing wrong, and how can I correct it?
Thanks,
Dave