私はSQLでクエリを持っています
SELECT COUNT(DISTINCT dbo.Polling_Stations.P_ID) AS [Male Stations]
FROM dbo.Agent INNER JOIN
dbo.Polling_Stations ON dbo.Agent.P_ID = dbo.Polling_Stations.P_ID
GROUP BY dbo.Polling_Stations.Gender
HAVING (dbo.Polling_Stations.Gender = N'Male')
私はそれを次のようにAccessに変換しました:
SELECT COUNT(DISTINCT Polling_Stations.P_ID) AS [Male Stations]
FROM Agent INNER JOIN
Polling_Stations ON Agent.P_ID = Polling_Stations.P_ID
GROUP BY Polling_Stations.Gender
HAVING (Polling_Stations.Gender = 'Male')
しかし、それは私にエラーを与えます:クエリ式 'Count(DISTINCT Polling_Stations.P_ID)'の構文エラー(演算子がありません)。