Something not right with this query, please help
Here is the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
If I remove the inner INNER JOIN, I will get the b.idCust just fine. The c.custName is the problem.
Thanks
Here is the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
Code:
"SELECT " _
& " a.idGroup,a.groupName,a.viewType,a.active, " _
& " b.idCust,c.custName " _
& " FROM tblGroups a " _
& " INNER JOIN tblGroupCust b " _
& " INNER JOIN tblCustomers c " _
& " ON b.idCust = c.idCust " _
& " ON a.idGroup = b.idGroup " _
& " ORDER BY a.groupName"
Thanks