I'm trying to import a table from SQL Server 8 into a local Access 2003 database. The code looks like this:
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=TimberlineWarehouse;LANGUAGE=us_english;DATABASE=TimberlineWarehouse;Integrated Security='SSPI'", acTable, "tempAuditFootnote", "tempAuditFootnote"
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=TimberlineWarehouse;LANGUAGE=us_english;DATABASE=TimberlineWarehouse;Integrated Security='SSPI'", acTable, "tempAuditFootnote_Yardi", "tempAuditFootnote_Yardi"
The first TransferDatabase works great (I get a new Access table called 'tempAuditFootnote'. The problem is I keep getting a 3011 (jet can't find the object 'tempAuditFootnoteYardi') on the second. Now when I open up SQL Server, the table 'tempAuditFootnote_Yardi' is right there. I can open it, update it, drop it, etc.. I can't figure out why it can see & transfer one but not the other! Both tables are in the same db, but only one will transfer or be seen by jet!
Any ideas? Please help!!!
Thanks,
Jason
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=TimberlineWarehouse;LANGUAGE=us_english;DATABASE=TimberlineWarehouse;Integrated Security='SSPI'", acTable, "tempAuditFootnote", "tempAuditFootnote"
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=TimberlineWarehouse;LANGUAGE=us_english;DATABASE=TimberlineWarehouse;Integrated Security='SSPI'", acTable, "tempAuditFootnote_Yardi", "tempAuditFootnote_Yardi"
The first TransferDatabase works great (I get a new Access table called 'tempAuditFootnote'. The problem is I keep getting a 3011 (jet can't find the object 'tempAuditFootnoteYardi') on the second. Now when I open up SQL Server, the table 'tempAuditFootnote_Yardi' is right there. I can open it, update it, drop it, etc.. I can't figure out why it can see & transfer one but not the other! Both tables are in the same db, but only one will transfer or be seen by jet!
Any ideas? Please help!!!
Thanks,
Jason