G
Guest
In one of my calculated fields, I am trying to reference another calculated
field within it:
EMPIDValidation: IIf(Len([EMPID])<>0,[EMPID],(Select A.EMPID FROM
tblInvalidSINMapping as A WHERE (A.InvalidSIN = tblPayrollUpload.SIN) AND
(A.NewStore = tblPayrollUpload.Store)))
ECodeValidation: (Select A.Earnded FROM CPEMPD AS A WHERE (A.EMPLOYEE =
[EMPIDValidation]) AND (A.EARNDED = ECode))
When I try to run the query, it is asking for a parameter value for
EMPIDValidation. What am I doing wrong here?
field within it:
EMPIDValidation: IIf(Len([EMPID])<>0,[EMPID],(Select A.EMPID FROM
tblInvalidSINMapping as A WHERE (A.InvalidSIN = tblPayrollUpload.SIN) AND
(A.NewStore = tblPayrollUpload.Store)))
ECodeValidation: (Select A.Earnded FROM CPEMPD AS A WHERE (A.EMPLOYEE =
[EMPIDValidation]) AND (A.EARNDED = ECode))
When I try to run the query, it is asking for a parameter value for
EMPIDValidation. What am I doing wrong here?