I'm having a problem while using docmd.transferdatabase. Unless I first go to File>Get External Data>Import and "access" (just selecting the source and hitting cancel--not actually importing anything) all my data sources, I get an "ODBC Call Failed--Unable to connect" error. It's like I have to go through the steps myself manually and then the code will work. Any suggestions on completely automating the file imports?
The line from my code is:
DoCmd.TransferDatabase acImport, "ODBC Database", !ConnectString, acTable, !SourceTable, !LocalTableName, False
A typical connectstring is "ODBC;DSN=Caustic;DBQ=S:\RBMWare\RBMsuite\CustData\Caustic Hardwood.rbm;SERVER=s00ffs02DATABASE="
Thanks,
Patrick
The line from my code is:
DoCmd.TransferDatabase acImport, "ODBC Database", !ConnectString, acTable, !SourceTable, !LocalTableName, False
A typical connectstring is "ODBC;DSN=Caustic;DBQ=S:\RBMWare\RBMsuite\CustData\Caustic Hardwood.rbm;SERVER=s00ffs02DATABASE="
Thanks,
Patrick