Hello:
I am trying to insert a group of tables from an Access database to a SQL database using the following VB code:
'****************************************
gsdatabase ="C:\data\bkup.mdb"
db.ConnectionString = "DSN=" & connstr 'connstr is the name of a valid SQL ODBC connection
db.open
ssql = "Insert into " & TABLAS(i) & " Select * from " & TABLAS(i) & " In '" & gsdatabase & "'"
db.Execute ssql
'***************************************
I am getting the following error message:
[Microsoft][ODBC SQL Server]Incorrect syntax near the keyword 'In'
What is wrong?. I have used that before but from Access to Access.
Any help will be appreciated.
Chequi.
I am trying to insert a group of tables from an Access database to a SQL database using the following VB code:
'****************************************
gsdatabase ="C:\data\bkup.mdb"
db.ConnectionString = "DSN=" & connstr 'connstr is the name of a valid SQL ODBC connection
db.open
ssql = "Insert into " & TABLAS(i) & " Select * from " & TABLAS(i) & " In '" & gsdatabase & "'"
db.Execute ssql
'***************************************
I am getting the following error message:
[Microsoft][ODBC SQL Server]Incorrect syntax near the keyword 'In'
What is wrong?. I have used that before but from Access to Access.
Any help will be appreciated.
Chequi.