访问时查询语法错误

时间:2014-03-12 20:08:31

标签: sql ms-access

    SELECT Surname, Firstname, Team_Name, PostCode, Winner, Date_Of_Game,
          Place_Of_GameFROM, tblPlayerProfile 
    INNER JOIN tblTeamDetails 
        ON tblPlayerProfile.Team_ID_Number = tblTeamDetails.Team_ID_Number 
    INNER JOIN tblMatchStatistics 
        ON tblTeamDetails.Team_ID_Number = tblMatchStatistics.Team_ID_Number
    INNER JOIN tblGameResults 
        ON tblMatchStatistics.MatchID = tblGameResults.MatchID
    WHERE (((tblGameResults.MatchID)=[FormsReport]![MatchFormReportD8]![Combo10]));

我遇到了麻烦

2 个答案:

答案 0 :(得分:1)

Place_Of_GameFROM tblPlayerProfile - > Place_Of_Game FROM tblPlayerProfile

答案 1 :(得分:0)

查看此查询。您忘了指定FROM

SELECT Surname, Firstname, Team_Name, PostCode, Winner, Date_Of_Game, Place_Of_Game
     FROM tblPlayerProfile 
    INNER JOIN tblTeamDetails 
        ON tblPlayerProfile.Team_ID_Number = tblTeamDetails.Team_ID_Number 
    INNER JOIN tblMatchStatistics 
        ON tblTeamDetails.Team_ID_Number = tblMatchStatistics.Team_ID_Number
    INNER JOIN tblGameResults 
        ON tblMatchStatistics.MatchID = tblGameResults.MatchID
    WHERE (((tblGameResults.MatchID)=[FormsReport]![MatchFormReportD8]![Combo10]));
相关问题