Results 1 to 2 of 2
  1. #1
    haggisns is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    9

    Question getting error using docmd.transferdatabase

    Hi,

    I am trying to import a table on SQL Server 2000 into a a new table on my current access database.

    DoCmd.TransferDatabase acImport, "ODBC Database", _
    "ODBC;DSN=devserver2000;LANGUAGE=us_english;" _
    & "DATABASE=CompPC", acTable, "PCS", "PCList"

    When I run this statement I get the following error:

    Run time error "3011"

    The microsoft jet database engine could not find the object PCList
    make sure the object exists and that you spell its name and the path name correctly.

    I thought the point of this method was to create the new table so of course it would not already exist.



    For testing: I created a empty PCList table on the access database and ran it again and this time it will say " object PCList1" so it actually does find PCList object but parses on a 1 to give PCList1 because PCList already exists. But then it can't can PCList1 that it just created as a placeholder.

    I am using SQL Profiler and the method is creating a connection to the server successfully.

    Can you please help how to get the syntax correct or may be it is an environment issue.

    thank you

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    What occurs if you attempt to link to the table, rather than import?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 12-10-2018, 05:24 PM
  2. DoCmd.SendObject Question
    By HunterEngineeringCoop in forum Programming
    Replies: 3
    Last Post: 10-04-2010, 01:42 PM
  3. Replies: 0
    Last Post: 06-17-2010, 04:51 AM
  4. Replies: 5
    Last Post: 03-30-2010, 12:53 PM
  5. DoCmd.SendObject Help
    By bgreer5050 in forum Programming
    Replies: 0
    Last Post: 01-12-2007, 06:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums