SQL Server vs Access
Posted in tech on 06/14/2009 07:42 pm by nunoHow to import data from SQL Server 2005 to Microsoft Access throw VBA code? Quite simple. The problem is finding the correct SQL connection string:
DoCmd.TransferDatabase acImport, “ODBC”, _
“ODBC;DRIVER=SQL Server;” & _
“UID=username;” & _
“DATABASE=databasename;” & _
“SERVER=server;” & _
“PWD=password“, acTable, “table1“, “table1_copy“, False, True
I lost so many hours figuring out what the hell did “Could not find installable ISAM” means…
12/02/2009 at 16:12
I am definitely bookmarking this page and sharing it with my friends.
:)