M
Michael Edwards
I can't figure out how to get my union queries to work on linked Foxpro
tables.
Basically, I want to get the sj (Sales Journal) and sjarc (Archived Sales
Journal) tables returned in the form of a Union query.
The SQL is:
SELECT sj.sjaracct, sj.sjidno, sj.sjinv, sj.sjaccount, sj.sjpdate,
sj.sjidate, sj.sjddate, sj.sjbsdate, sj.sjbedate, sj.sjside, sj.sjlev2,
sj.sjlev3, sj.sjitype, sj.sjamount, sj.sjcontrol, sj.sjnotes, sj.sjlastd,
sj.sjlastp, sj.sjreverse, sj.sjori
FROM sj
UNION ALL SELECT sjarc.sjaracct, sjarc.sjidno, sjarc.sjinv, sjarc.sjaccount,
sjarc.sjpdate, sjarc.sjidate, sjarc.sjddate, sjarc.sjbsdate, sjarc.sjbedate,
sjarc.sjside, sjarc.sjlev2, sjarc.sjlev3, sjarc.sjitype, sjarc.sjamount,
sjarc.sjcontrol, sjarc.sjnotes, sjarc.sjlastd, sjarc.sjlastp,
sjarc.sjreverse, sjarc.sjori
FROM sjarc;
I get the following error on this and all UNION queries on the Foxpro
Tables:
"ODBC --call failed.
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. (#200)"
Is there a way to do this from Access 2000?
tables.
Basically, I want to get the sj (Sales Journal) and sjarc (Archived Sales
Journal) tables returned in the form of a Union query.
The SQL is:
SELECT sj.sjaracct, sj.sjidno, sj.sjinv, sj.sjaccount, sj.sjpdate,
sj.sjidate, sj.sjddate, sj.sjbsdate, sj.sjbedate, sj.sjside, sj.sjlev2,
sj.sjlev3, sj.sjitype, sj.sjamount, sj.sjcontrol, sj.sjnotes, sj.sjlastd,
sj.sjlastp, sj.sjreverse, sj.sjori
FROM sj
UNION ALL SELECT sjarc.sjaracct, sjarc.sjidno, sjarc.sjinv, sjarc.sjaccount,
sjarc.sjpdate, sjarc.sjidate, sjarc.sjddate, sjarc.sjbsdate, sjarc.sjbedate,
sjarc.sjside, sjarc.sjlev2, sjarc.sjlev3, sjarc.sjitype, sjarc.sjamount,
sjarc.sjcontrol, sjarc.sjnotes, sjarc.sjlastd, sjarc.sjlastp,
sjarc.sjreverse, sjarc.sjori
FROM sjarc;
I get the following error on this and all UNION queries on the Foxpro
Tables:
"ODBC --call failed.
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. (#200)"
Is there a way to do this from Access 2000?