Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    append query to tables in another databse (2002)

    hello to you all.
    There are 2 things that i would like your advice about as i do not have the knowledge. it is for a project im doing so i hope you can help me.
    first things first.....i have a database where forms are in with the tables. this is ok as there wont be loads of data. I would like to know how to append data using a query to exact copies of the tables in another database in the same directory. I need to do it like this and in code as the users are not able to do this sort of thing.

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    USA
    Posts
    386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query to tables in another databse (2002)

    If you using a query to append the data, there is a parameter for the destination DB name. If you put the path and name of the db where the data is to be appended in this filed, it will put the data in your table in the external db.

    If you need the SQL for this, simply build a query using the query builder to do what you need, switch to the SQL view and copy the code.
    Richard

  3. #3
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: append query to tables in another databse (2002)

    Firstly I would split the database into a FE/BE. If you don't split them and a form corrupts then you have lost your data.

    Richard has explained what to do re the other point.

    Alternatively you can output the record to your main database with a "copied" flag set to false. Periodically you could use an append query to copy those records to the other database where the "copied" flag is false, after the copy you would set the "copied" flag to true.

  4. #4
    New Lounger
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query to tables in another databse (2002)

    ok so i should split the database. So how can i link the tables using VBA and refresh the links etc everytime they log in. I only want to do it like this any other way would confuse the user.

  5. #5
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query to tables in another databse (2002)

    Find enclosed two techniques

    1. AutoReattachTables - assumes both FE & BE are in same directory on the server

    2. LinkUponOpen - This is the one I use that has the FE on client and multiple BE

  6. #6
    New Lounger
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query to tables in another databse (2002)

    thanks very much for your help/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •