G
Guest
I am getting an error message when trying to run a crosstab query (Q1) based
on a query with parameters (Q2). The base query's (Q2) parameter is a
subquery. I've read that I need to define my parameters before the crosstab
will work but when I put my subquery in as my parameter I get an error
message that I have the incorrect syntax. Please help.
Here is my base query (Q2):
SELECT tblBrnHeader.Brn_ID
FROM tblBrnHeader
WHERE (((tblBrnHeader.Brn_ID) In (SELECT tblEmpSecurityBranch.Brn_ID FROM
tblEmpSecurityBranch WHERE
(((tblEmpSecurityBranch.UserName)=[currentuser])))));
on a query with parameters (Q2). The base query's (Q2) parameter is a
subquery. I've read that I need to define my parameters before the crosstab
will work but when I put my subquery in as my parameter I get an error
message that I have the incorrect syntax. Please help.
Here is my base query (Q2):
SELECT tblBrnHeader.Brn_ID
FROM tblBrnHeader
WHERE (((tblBrnHeader.Brn_ID) In (SELECT tblEmpSecurityBranch.Brn_ID FROM
tblEmpSecurityBranch WHERE
(((tblEmpSecurityBranch.UserName)=[currentuser])))));