Access 2003 SetValue [x].[Visible] Question

G

Guest

Hi

I am trying to make a number of control labels either visible or not visible
depending on the state of a toggle control. I have tried to combine all the
labels together as one expression but I get an error.

The SetValue expression is of the format:

Item: [Label1].[Visible] And [Label2].[Visible] And ..... etc etc
Expression: Yes

As soon as I add more than one [x].[Visible] into the expression I get the
error.

Anyone know what is the correct format?

I know there will be an Access MVP out there with a simple answer for me!

Thanks

Steve
 
S

Steve Schapel

Steve,

Sorry, you can't do it like this. You will need a separate SetValue
action for each label.
 
G

Guest

Thanks very much for that Steve! I did suspect that that might be the case,
but I also hoped that logical expressions might be allowed to avoid lengthy
macros!

Steve Schapel said:
Steve,

Sorry, you can't do it like this. You will need a separate SetValue
action for each label.

--
Steve Schapel, Microsoft Access MVP

Steve said:
Hi

I am trying to make a number of control labels either visible or not visible
depending on the state of a toggle control. I have tried to combine all the
labels together as one expression but I get an error.

The SetValue expression is of the format:

Item: [Label1].[Visible] And [Label2].[Visible] And ..... etc etc
Expression: Yes

As soon as I add more than one [x].[Visible] into the expression I get the
error.

Anyone know what is the correct format?

I know there will be an Access MVP out there with a simple answer for me!

Thanks

Steve
 

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

Top