S
Shing
I am trying to join two linked tables ("Job_Transactions" and
"Purchase_Ledger" from a database called Sage 100, it's an English accounting
package) by creating a left join. When I run the query, I receive the error
"Could not execute query; could not find linked table. Table not found (#0)."
If I change the join to an inner join, the query runs.
The SQL is below:
SELECT JOB_TRANSACTIONS.JOB_NUMBER, JOB_COSTING_FILE.JOB_NAME,
JOB_TRANSACTIONS.REFERENCE, JOB_TRANSACTIONS.SECOND_REFERENCE,
JOB_COST_HEADINGS.COST_HEADING, JOB_TRANSACTIONS.TRANSACTION_DATE,
JOB_TRANSACTIONS.TOTAL_VALUE_AT_COST, PURCHASE_LEDGER.ANALYSIS_1
FROM ((JOB_TRANSACTIONS LEFT JOIN PURCHASE_LEDGER ON JOB_TRANSACTIONS.
ACCT_EMP_ITEM_NO = PURCHASE_LEDGER.ACCOUNT_NUMBER) INNER JOIN
JOB_COSTING_FILE ON JOB_TRANSACTIONS.JOB_NUMBER = JOB_COSTING_FILE.JOB_NUMBER)
INNER JOIN JOB_COST_HEADINGS ON JOB_TRANSACTIONS.TRAN_COST_HEADING =
JOB_COST_HEADINGS.COST_CODE;
"Purchase_Ledger" from a database called Sage 100, it's an English accounting
package) by creating a left join. When I run the query, I receive the error
"Could not execute query; could not find linked table. Table not found (#0)."
If I change the join to an inner join, the query runs.
The SQL is below:
SELECT JOB_TRANSACTIONS.JOB_NUMBER, JOB_COSTING_FILE.JOB_NAME,
JOB_TRANSACTIONS.REFERENCE, JOB_TRANSACTIONS.SECOND_REFERENCE,
JOB_COST_HEADINGS.COST_HEADING, JOB_TRANSACTIONS.TRANSACTION_DATE,
JOB_TRANSACTIONS.TOTAL_VALUE_AT_COST, PURCHASE_LEDGER.ANALYSIS_1
FROM ((JOB_TRANSACTIONS LEFT JOIN PURCHASE_LEDGER ON JOB_TRANSACTIONS.
ACCT_EMP_ITEM_NO = PURCHASE_LEDGER.ACCOUNT_NUMBER) INNER JOIN
JOB_COSTING_FILE ON JOB_TRANSACTIONS.JOB_NUMBER = JOB_COSTING_FILE.JOB_NUMBER)
INNER JOIN JOB_COST_HEADINGS ON JOB_TRANSACTIONS.TRAN_COST_HEADING =
JOB_COST_HEADINGS.COST_CODE;