I’ve been looking around for this and thought i’d ask the lounge. basically, i want to do strSQL = “SELECT * INTO dbo_SQLSERVERTABLE FROM ACCESSTABLE;” so as to send all records at one go to SQL Server. i don’t want to maintain ODBC on the target machines or have a linked table that exists any longer than necessary. so, is there a way to do this in VBA?
1. link into a SQL Server table (without relying on a local ODBC file)
2. run the SQL
3. drop the link
i’ve seen various solutions using tabledefs or even OPENROWSET but i got a ‘cannot find ISAM’ error on one attempt. I could do something tedious like a loop and multiple insert statements but yuck. anyhow, i’m pretty sure this is doable but a bit foggy on the road to take.
TIA