mischmasch
Programmer
- May 10, 2011
- 11
Hi,
I have problem with copying data between two MS Access databases.
I have:
a) DataBase1 that has Table1 that has field Model
b) DataBase2 that has Table2 that has field Model
Both databases are protected. Password is: <>something[]
I try to copy data by using ADOCommand, so I have something like this:
with ADOCommand1 do
begin
When I try execute this, I get some error with message: wrong defined parameter ...
Anyone knows what I'm doing wrong?
Thx for help.
I have problem with copying data between two MS Access databases.
I have:
a) DataBase1 that has Table1 that has field Model
b) DataBase2 that has Table2 that has field Model
Both databases are protected. Password is: <>something[]
I try to copy data by using ADOCommand, so I have something like this:
with ADOCommand1 do
begin
Close;
ConnectionString := ... connection_string_to_DataBase1;
CommandText := 'INSERT INTO [Table1] SELECT Model FROM [;DATABASE=' + path_to_DataBase2 + ';PWD=<>something[]].[Table2];';
Execute;
Close;
end;ConnectionString := ... connection_string_to_DataBase1;
CommandText := 'INSERT INTO [Table1] SELECT Model FROM [;DATABASE=' + path_to_DataBase2 + ';PWD=<>something[]].[Table2];';
Execute;
Close;
When I try execute this, I get some error with message: wrong defined parameter ...
Anyone knows what I'm doing wrong?
Thx for help.