Hello,
I'm having a problem with the syntax of a subquery. This is what I have:
SELECT tblErrorDetail.ID
FROM tblErrorDetail
WHERE tblErrorDetail.[Reason Code] In (select [tblReasonCodes].[Reason Code] from tblReasonCodes where [BA]= "P");
I'm getting a type mismatch error. Reasoncode is a numeric field.
When I substitute with an example it works fine and my subquery works fine by iteself:
SELECT tblErrorDetail.ID
FROM tblErrorDetail
WHERE tblErrorDetail.[Reason Code] In ('741');
Can someone help me?
Thanks!
I'm having a problem with the syntax of a subquery. This is what I have:
SELECT tblErrorDetail.ID
FROM tblErrorDetail
WHERE tblErrorDetail.[Reason Code] In (select [tblReasonCodes].[Reason Code] from tblReasonCodes where [BA]= "P");
I'm getting a type mismatch error. Reasoncode is a numeric field.
When I substitute with an example it works fine and my subquery works fine by iteself:
SELECT tblErrorDetail.ID
FROM tblErrorDetail
WHERE tblErrorDetail.[Reason Code] In ('741');
Can someone help me?
Thanks!