davidcreswell
Technical User
Hello:
I am trying to run a union query in a MS Access db with an odbc connection to vfp. The data in both tables have the same format -- they are just diffent years.
SELECT table1.vendor
FROM table1
UNION ALL
SELECT table2.vendor
FROM table2;
This should work, but I don't know why. I am getting the following msgbox.
ODBC – call failed.
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. (#200)
Any help would be appreciated.
Thanks,
David
I am trying to run a union query in a MS Access db with an odbc connection to vfp. The data in both tables have the same format -- they are just diffent years.
SELECT table1.vendor
FROM table1
UNION ALL
SELECT table2.vendor
FROM table2;
This should work, but I don't know why. I am getting the following msgbox.
ODBC – call failed.
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. (#200)
Any help would be appreciated.
Thanks,
David