F
Fev
Hi
I have just started using Union queries, and while I have been able to
get the bulk of the data in the result, I would like to include 2
further fields that both appear in the original select queries, but I
cannot get them to be accepted as part of the Union query. My query
reads:
SELECT [Reviewer Name], [Peer to Review]
FROM qryNFIRandomisedReport
Where [forms]![frmEMailReviewers]![cboCycle]=[myCycle]
UNION ALL SELECT [Reviewer Name], [Peer to Review]
FROM qryFIRandomisedReport
Group by [Reviewer Name], [Peer to Review]
ORDER BY [Reviewer Name], [Peer to Review];
[Peer to Review] and [Reviewer Name] in both queries are the result of
concatenating [FirstName] and [LastName]. The two other fields that i
would like to use are [Cycle] and [IDStaff] - these also appear in the
dynsets of both of the original queries. When I include them in the
select line, I get the following message:
The SELECT statement includes a reserved word or an argument name that
is misspelled or missing, or the punctuation is incorrect. I have
placed these fields at various places in the SELECT line, with a comma
and in [ ], without any luck.
I would greatly appreciate some help in this.
Thanks
Heather
I have just started using Union queries, and while I have been able to
get the bulk of the data in the result, I would like to include 2
further fields that both appear in the original select queries, but I
cannot get them to be accepted as part of the Union query. My query
reads:
SELECT [Reviewer Name], [Peer to Review]
FROM qryNFIRandomisedReport
Where [forms]![frmEMailReviewers]![cboCycle]=[myCycle]
UNION ALL SELECT [Reviewer Name], [Peer to Review]
FROM qryFIRandomisedReport
Group by [Reviewer Name], [Peer to Review]
ORDER BY [Reviewer Name], [Peer to Review];
[Peer to Review] and [Reviewer Name] in both queries are the result of
concatenating [FirstName] and [LastName]. The two other fields that i
would like to use are [Cycle] and [IDStaff] - these also appear in the
dynsets of both of the original queries. When I include them in the
select line, I get the following message:
The SELECT statement includes a reserved word or an argument name that
is misspelled or missing, or the punctuation is incorrect. I have
placed these fields at various places in the SELECT line, with a comma
and in [ ], without any luck.
I would greatly appreciate some help in this.
Thanks
Heather