S
Sean Kenney
I am executing a query in access using the following statement:
SELECT
p.PlayerID,
p.lastname + ',' + p.firstname + ' ' + p.middlename as [Name],
(select Sum(score) from scores s where s.playerid = p.playerid and
pr.roundid = s.roundid) as Total
FROM
players AS p,
playerRounds AS pr
WHERE
p.PlayerID = [pr].[playerid]
AND
pr.TournamentId = 1
and it seems to run ok. But when I add 'order by Total' it pops up
the enter parameter value window.
Can someone please help.
SELECT
p.PlayerID,
p.lastname + ',' + p.firstname + ' ' + p.middlename as [Name],
(select Sum(score) from scores s where s.playerid = p.playerid and
pr.roundid = s.roundid) as Total
FROM
players AS p,
playerRounds AS pr
WHERE
p.PlayerID = [pr].[playerid]
AND
pr.TournamentId = 1
and it seems to run ok. But when I add 'order by Total' it pops up
the enter parameter value window.
Can someone please help.