To make it clearer to you the expressions after the first = is treated as a
boolean expression
you're obviously lacking some code, probably an iif statement, but I'll try
to "mock up" a working sample of your code
Me.[Print TA].Visible = Me.[Employee]=Y and [I/O]=I
Would be more readable if expanded to
Me.[Print TA].Visible = (Me.[Employee]=Y) and ([I/O]=I)
and more understandable (?) idf expanded to
Me.[Print TA].Visible = ((Me.[Employee]=Y)=True) And (([I/O]=I)=True)
or
Me.[Print TA].Visible = IIF((Me.[Employee]=Y)=True and ([I/O]=I)=True,True,
False)
in "ingrish"
If The Control (Field) "Employee" is Equal to the variable Y AND the Control
(Field) "I/O" is Equal to the variable I Then Display the control "Print
TA", Else hide it
HTH
Pieter
Chey said:
I have 3 Command Buttons
I kind of know what to do but then I go south
Me.[Print TA].Visible = Me.[Employee]=Y and [I/O]=I, False)
Me.[Label55].Visible = Me.[Employee]=N and [I/O]=I, False)
Me.[Label56].Visible = Me.[Employee]=Y and [I/O]=O, False)
It turns red. I have not done an AND like this before.
Thanks
Chey
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4388 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!