M
MikeR
My front end is Delphi, and the back is Jet. I'm using DAO.
I need to import a table from one DB into another. The MS doc says
"The general syntax of the "copy table" SQL is: SELECT * INTO <Target> FROM <Source>
Where <Source> is the table we want to copy and <Target> is the destination for the
table. Note that this SQL statement will attempt to create <Target> with the same
table structure as <Source> and populate <Target> with all of the records from <Source>.
Note that <Target> and <Source> allow the following three variations: ( I left off
two) [<Full path to Microsoft Access database>].[<Table Name>]"
Both DB are open. My query is:
sql := 'Select * into DB1.mdb.Alias from Upd45.MDB.Alias';
dbDAO.Execute(sql);
I get 'Query input must contain at least one table or query'.
Any suggestions?
Thanx,
Mike
I need to import a table from one DB into another. The MS doc says
"The general syntax of the "copy table" SQL is: SELECT * INTO <Target> FROM <Source>
Where <Source> is the table we want to copy and <Target> is the destination for the
table. Note that this SQL statement will attempt to create <Target> with the same
table structure as <Source> and populate <Target> with all of the records from <Source>.
Note that <Target> and <Source> allow the following three variations: ( I left off
two) [<Full path to Microsoft Access database>].[<Table Name>]"
Both DB are open. My query is:
sql := 'Select * into DB1.mdb.Alias from Upd45.MDB.Alias';
dbDAO.Execute(sql);
I get 'Query input must contain at least one table or query'.
Any suggestions?
Thanx,
Mike