R
Robin Chapple
I have a Totals query based on a query with the fields [ClubName],
[Zone] and [Group] in the same table.
Clubs are in several groups and any one of four zones.
This produces a concatenated list of clubs in each zone:
SELECT qryZones.Zone, Concatenate("SELECT ClubName FROM qryZones WHERE
Zone =" & [Zone]) AS Zones
FROM qryZones
GROUP BY qryZones.Zone, Concatenate("SELECT ClubName FROM qryZones
WHERE Zone =" & [Zone]);
All of that thanks to help in this newsgroup.
I have now attempted to produce a similar report for the clubs in
groups. There is a field [Group] in the same table so I substituted:
Group for zone in the design of the query and this:
SELECT qryZones.Group, Concatenate("SELECT ClubName FROM qryZones
WHERE Group =" & [Group]) AS Zones
FROM qryZones
GROUP BY qryZones.Group, Concatenate("SELECT ClubName FROM qryZones
WHERE Group =" & [Group]);
for the other field. all that I have done is to change Zone to Group.
I now get an error message:
"Run time error 3145
Syntax error in WHERE clause"
A Google search did not show any similar reference in the first answer
that I scanned.
[Zone] and [Group] in the same table.
Clubs are in several groups and any one of four zones.
This produces a concatenated list of clubs in each zone:
SELECT qryZones.Zone, Concatenate("SELECT ClubName FROM qryZones WHERE
Zone =" & [Zone]) AS Zones
FROM qryZones
GROUP BY qryZones.Zone, Concatenate("SELECT ClubName FROM qryZones
WHERE Zone =" & [Zone]);
All of that thanks to help in this newsgroup.
I have now attempted to produce a similar report for the clubs in
groups. There is a field [Group] in the same table so I substituted:
Group for zone in the design of the query and this:
SELECT qryZones.Group, Concatenate("SELECT ClubName FROM qryZones
WHERE Group =" & [Group]) AS Zones
FROM qryZones
GROUP BY qryZones.Group, Concatenate("SELECT ClubName FROM qryZones
WHERE Group =" & [Group]);
for the other field. all that I have done is to change Zone to Group.
I now get an error message:
"Run time error 3145
Syntax error in WHERE clause"
A Google search did not show any similar reference in the first answer
that I scanned.