I’m writing a C# application and am using an Access .mdb. I’m trying to make a simple JOIN of a table with email messages and a table with message relations (each email msg can be assigned to several teams of workers). Unfortunately I’m getting an error with this simple query and can’t understand why. Any help appreciated.
string queryGetMails = " SELECT * FROM Mails JOIN MailAssignments ON Mails.msgId = MailAssignments.msgId ";
And the error I get is:
System.Data.OleDb.OleDbException: Syntax error in FROM clause.
I would specify LEFT JOIN, INNER JOIN etc…
Tried your query with Access Interface and doesn’t like your syntax without LEFT, INNER, RIGHT before JOIN.
Just as a side note. One of the advantages of using Access is the ease with which you can do tests to correct this kind of errors.