I'm attempting to use the following code:
To import a SQL Server table into an Access database. Well, it should work, I suppose, but it's doing one really odd thing.
At every attempt to run, I'm getting this error:
Well, I used "Here", not "Here1" in my testing, but it's seeing it as "Here1"...
Could this be a form of data corruption somewhere, or is it just giving me a non-meaningful error message when something else is actually my issue?
Thanks for thoughts or suggestions
Code:
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=MySqlServer;Description=MySqlServer Sandbox;Trusted_Connection=Yes;" & _
"DATABASE=Sandbox;", acTable, Environ("UserName") & "].[MySandboxTable]" _
, "Here"
At every attempt to run, I'm getting this error:
Run-time error '3011':
The Microsoft Office Access database engine could not find the object 'Here1'.
Make sure the object exists and that you spell its name and the path name correctly.
Well, I used "Here", not "Here1" in my testing, but it's seeing it as "Here1"...
Could this be a form of data corruption somewhere, or is it just giving me a non-meaningful error message when something else is actually my issue?
Thanks for thoughts or suggestions