Hi,
I'm building a dynamic where clause for my report based on some selections made on a form by users. I cant get the syntax right.
I have 2 combo boxes cboPM1 and cboPM2 and i need to build the following criteria
e.g.
((EmpID = cboPM1 AND StatusID = 1) OR (rEmpID = cboPM1 AND StatusID = 1))
or
((EmpID = cboPM2 AND StatusID = 1) OR (rEmpID = cboPM2 and StatusID = 1))
I'm trying to evaluate 4 different clauses. Please help!
I'm building a dynamic where clause for my report based on some selections made on a form by users. I cant get the syntax right.
I have 2 combo boxes cboPM1 and cboPM2 and i need to build the following criteria
e.g.
((EmpID = cboPM1 AND StatusID = 1) OR (rEmpID = cboPM1 AND StatusID = 1))
or
((EmpID = cboPM2 AND StatusID = 1) OR (rEmpID = cboPM2 and StatusID = 1))
I'm trying to evaluate 4 different clauses. Please help!