I have a local access database that I send up to an SQL db using:
and it works fine, however before uploading the new data I need to clear down the old data.
I have tried:
and get an error 3622:
You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.
I tried removing the IDENTITY col and got an error saying could not delete from specified tables.
Any help, much appreciated.
Code:
db.Execute "INSERT INTO [ODBC;DRIVER=SQL Server;SERVER=MyServer;DATABASE=MYDatabase].MyTable( Field1, Field2 ) SELECT lclFld1, lclFld2 FROM lclTable
I have tried:
Code:
db.Execute "DELETE FROM [ODBC;DRIVER=SQL Server;SERVER=MyServer;DATABASE=MYDatabase].MyTable
You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.
I tried removing the IDENTITY col and got an error saying could not delete from specified tables.
Any help, much appreciated.