I get the following error message when trying to run a union query in Access against the Nominal Ledger file in SAGE Line 50:
ODBC Call Failed
Syntax Error: Invalid table specification (#0)
A simplifed extract of the query is:
SELECT NOMINAL_LEDGER.ACCOUNT_REF, NOMINAL_LEDGER.PRIOR_YR_MTH1 as Amount
FROM NOMINAL_LEDGER
UNION SELECT NOMINAL_LEDGER.ACCOUNT_REF, NOMINAL_LEDGER.PRIOR_YR_MTH2 As amount
FROM NOMINAL_LEDGER;
This works fine when run against a copy of the nominal ledger file.
Does anyone have any ideas please?
Need more, need help now?
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
Union Query in Access: ODBC Call failed
- brucedenney
- Site Admin

- Posts: 4665
- Joined: 28 Feb 2006, 09:56
- Sage Version: v30 UK/Europe/Africa
The ODBC drivers are slow and "quirky"
I generally create a copy of the table in Access and then run queeries on that table a lot faster and less quirky.
I generally create a copy of the table in Access and then run queeries on that table a lot faster and less quirky.
For just about anything Sage :- Discount subscriptions, pay-as-you-go support, application integration, reports, layouts, linked excel spreadsheets, analysis or any other help making life with sage easier/less time consuming Contact me.
Who is online
Users browsing this forum: No registered users and 33 guests