Hello,
I would like to conditionally format a text box on a form based on if the value entered is smaller or greater than a value on a table.
The table looks like this:
[Field1] [Field2] [Field3]
15______-6_______5
30______-2_______3
45______-1_______2
60_______1_______9
My conditional format would check the following: If value in text box ist smaller than the value in [Field2] on the table WHERE [FIELD1]=15, then color it red.
I am currently trying to use the conditional formatting on the text field with the following expression:
IIf([FORM1].[TEXTFIELD1]<[TABLE1].[FIELD2].[&FIELD1=15],True)
then it is supposed to color it red. However, something is missing or wrong in my expression.
Any ideas?
Thank you guys so much,
Kai
I would like to conditionally format a text box on a form based on if the value entered is smaller or greater than a value on a table.
The table looks like this:
[Field1] [Field2] [Field3]
15______-6_______5
30______-2_______3
45______-1_______2
60_______1_______9
My conditional format would check the following: If value in text box ist smaller than the value in [Field2] on the table WHERE [FIELD1]=15, then color it red.
I am currently trying to use the conditional formatting on the text field with the following expression:
IIf([FORM1].[TEXTFIELD1]<[TABLE1].[FIELD2].[&FIELD1=15],True)
then it is supposed to color it red. However, something is missing or wrong in my expression.
Any ideas?
Thank you guys so much,
Kai