Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

importing from another db

Discussion in 'Information Technology' started by Boots, Jul 28, 2006.

Tags:
  1. Boots

    Boots
    Expand Collapse
    Guest

    Hi All,
    I have an application I have created that gets information form both
    local and linked tables. The local tables are imported from another database
    that is downloaded from an outside source on a weekly basis. I am setting up
    process that enables the user to select which weeks db they want data to come
    from and have the correct tables imported into the db. I have used the
    Docmd.transferdatabase method and as the database file path would change I
    have set a string data type to read the file path and used this in the docmd
    function. I thought this would work but it doesn't.

    eg. this example should import the table "Aim" from the downloaded database
    into the current database.

    DoCmd.TransferDatabase acImport, "Microsoft Access", dbselect, acTable, "Aim"

    any suggestions on where i'm going wrong are welcome, thanks
     
  2. Loading...

    Similar Threads Forum Date
    Sikhism More Than Just Another Religion New to Sikhism Jul 25, 2016
    Yet Another Show Of Support For Sikhs From Canada! Breaking News Apr 28, 2016
    Another funny story, and Rory is castrated Blogs Oct 17, 2015
    Another week, another wolf Blogs Oct 17, 2015
    easy, develop another addiction! Blogs Oct 16, 2015

  3. Boots

    Boots
    Expand Collapse
    Guest

    I've sorted it now. Forgot to put my destination on.


    "Boots" wrote:

    > Hi All,
    > I have an application I have created that gets information form both
    > local and linked tables. The local tables are imported from another database
    > that is downloaded from an outside source on a weekly basis. I am setting up
    > process that enables the user to select which weeks db they want data to come
    > from and have the correct tables imported into the db. I have used the
    > Docmd.transferdatabase method and as the database file path would change I
    > have set a string data type to read the file path and used this in the docmd
    > function. I thought this would work but it doesn't.
    >
    > eg. this example should import the table "Aim" from the downloaded database
    > into the current database.
    >
    > DoCmd.TransferDatabase acImport, "Microsoft Access", dbselect, acTable, "Aim"
    >
    > any suggestions on where i'm going wrong are welcome, thanks
     

Share This Page