G
Guest
When I run the query below, it asks me to enter a parameter value for
TOC.source_name. TOC.[Source_name] is in the select statement and
Source_name is a field in the sub-query TOC, so I thought I had it covered.
Any idea why Access doesn't recognize it?
SELECT TOC.[Works_number], TOC.[Works_name], TOC.[Source_ name],
TOC.[TRI.Expr1], TOC.[OCS.Expr1], TOC.[Expr1], PAR.[Expr1]
FROM [TRI OCS CPA join] TOC LEFT JOIN [PAR3417 results vs detects by works]
PAR
ON TOC.[Works_number]=PAR.[Works_number]
UNION
SELECT TOC.[Works_number], TOC.[Works_name], TOC.[Source_ name],
TOC.[TRI.Expr1], TOC.[OCS.Expr1], TOC.[Expr1], PAR.[Expr1]
FROM [TRI OCS CPA join] TOC RIGHT JOIN [PAR3417 results vs detects by works]
PAR
ON TOC.[Works_number]=PAR.[Works_number];
Possibly relevant item:
The sub-query [TRI OCS CPA join] is itself the same kind of simulated full
join between two other queries.
Thanks,
Pat
TOC.source_name. TOC.[Source_name] is in the select statement and
Source_name is a field in the sub-query TOC, so I thought I had it covered.
Any idea why Access doesn't recognize it?
SELECT TOC.[Works_number], TOC.[Works_name], TOC.[Source_ name],
TOC.[TRI.Expr1], TOC.[OCS.Expr1], TOC.[Expr1], PAR.[Expr1]
FROM [TRI OCS CPA join] TOC LEFT JOIN [PAR3417 results vs detects by works]
PAR
ON TOC.[Works_number]=PAR.[Works_number]
UNION
SELECT TOC.[Works_number], TOC.[Works_name], TOC.[Source_ name],
TOC.[TRI.Expr1], TOC.[OCS.Expr1], TOC.[Expr1], PAR.[Expr1]
FROM [TRI OCS CPA join] TOC RIGHT JOIN [PAR3417 results vs detects by works]
PAR
ON TOC.[Works_number]=PAR.[Works_number];
Possibly relevant item:
The sub-query [TRI OCS CPA join] is itself the same kind of simulated full
join between two other queries.
Thanks,
Pat