Help with SQL Statement
I have a results page made with DataAssist. I need to join data from 4 tables in an access database so that the common names get displayed instead of the number relations. Here is my modified SQL Statement:
"SELECT tasktypes.*, tasks.*, projects.*, clients.* FROM ((projects INNER JOIN clients on projects.clientid = clients.clientid) INNER JOIN tasks on projects.projectid = tasks.projectid) INNER JOIN tasks on tasktypes.tasktypeid = tasks.tasktypeid"
It worked fine until I added the 3rd join. Now I get this error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in JOIN operation.
Can anyone help with this?
PS:
The one that worked fine looked like this:
"SELECT tasks.*, projects.*, clients.* FROM (projects INNER JOIN clients on projects.clientid = clients.clientid) INNER JOIN tasks on projects.projectid = tasks.projectid"
It returned the common name for the client and the project. Now I just want the common name for the task to be in there as well.


