Access Error using link table

M

Matt

I have this program and it links a few tables on a MS SQL 2003 server
into access 2003. The SQL statement below gives me the error below it.
I'm not a SQL expert but I know if I change LEFT JOIN to INNER JOIN it
does nto give me the error. Unfortunately it does not give me the
results I want. Thanks in advance for any help.

SQL STATEMENT:

SELECT tblLnk_APVEN.VENDORID, qrySel_TaxAuthority1.GROUPID,
qrySel_TaxAuthority1.AUTHORITY1, qrySel_TaxAuthority1.ITEMRATE1,
qrySel_TaxAuthority2.AUTHORITY2, qrySel_TaxAuthority2.ITEMRATE2
FROM tblLnk_APVEN LEFT JOIN (qrySel_TaxAuthority1 LEFT JOIN
qrySel_TaxAuthority2 ON qrySel_TaxAuthority1.GROUPID =
qrySel_TaxAuthority2.GROUPID) ON tblLnk_APVEN.CODETAXGRP =
qrySel_TaxAuthority1.GROUPID;


ASSOCIATED ERROR:

ODBC--call failed.

[Microsoft][ODBC SQL Server Driver][SQL Server]The Column prefix 'MS2'
does not match with a table name or alias name used in the query.
(#107)
[Microsoft][ODBC SQL Server Driver][SQL Server]The Column prefix 'MS2'
does not match with a table name or alias name used in the query.
(#107)
[Microsoft][ODBC SQL Server Driver][SQL Server]The Column prefix 'MS2'
does not match with a table name or alias name used in the query. (#107)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top