Hello all,
I'm having an issue with conditional formatting. I originally set up my form in continuous view to disable certain payroll fields if the department equaled 400. Obviously this is a static solution, and while it worked great, now I need to change it so that those fields are disabled if the department equals 400, 290, etc - by looking up the department's perm status (checkbox) in a different table (tblDepts).
Here's the conditional formatting I have so far in the fields to be disabled:
Condition 1
Expression is: [dept]=(SELECT tblDepts.code FROM tblDepts WHERE tblDepts.perm = True}
However, I can't get the code to work if a query is used. In fact, it only works if I specifically state [dept] = 400, which is not a good solution since the departments will be changing.
Any ideas how to get it working? Thanks in advance!!
I'm having an issue with conditional formatting. I originally set up my form in continuous view to disable certain payroll fields if the department equaled 400. Obviously this is a static solution, and while it worked great, now I need to change it so that those fields are disabled if the department equals 400, 290, etc - by looking up the department's perm status (checkbox) in a different table (tblDepts).
Here's the conditional formatting I have so far in the fields to be disabled:
Condition 1
Expression is: [dept]=(SELECT tblDepts.code FROM tblDepts WHERE tblDepts.perm = True}
However, I can't get the code to work if a query is used. In fact, it only works if I specifically state [dept] = 400, which is not a good solution since the departments will be changing.
Any ideas how to get it working? Thanks in advance!!