• append query to tables in another databse (2002)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » append query to tables in another databse (2002)

    Author
    Topic
    #424682

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #976084

      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.

    • #976194

      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.

      • #976280

        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.

        • #976295

          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

    Viewing 1 reply thread
    Reply To: Reply #976304 in append query to tables in another databse (2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel