Results 1 to 2 of 2
  1. #1
    aligahk06 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    94

    Editing one table and the same table in another folder update automaticaaly.

    Dear All,

    I'm having a very interesting problem and lookin for solution.
    I want to make a back up all records that a table may contain.
    The same table and the same form with same fields,I want to update records in one form and save the records in corresponding table.
    So after some time i want the same record that is saved in one table is updated in anothe table.
    This table and form is in separate folder just for back up.
    I mean editing in one table and auto updating in the same table in another folder.

    Any help to accomplish this task.



    That is one for Back up and another one for editing.


    Rgds,
    Aligahk06

  2. #2
    Robertt is offline Novice
    Windows 7 Access 2007
    Join Date
    May 2010
    Posts
    12
    Sounds like an audit trail to me.

    Are the changes being made in a form or via action queries?

    If a form, and you want all of the values copied, then write a query similar to "INSERT INTO backup_table select * from edited_table where primary_key=" me.primarykey and put that in your beforeUpdate event of the form. If the event fires without a problem, good, otherwise if it fails for some reason, you can capture the error code and cancel the update of your current form before the data is changed permanently without capturing the changes.

    If you are editing your data via action queries, you can use a query similar to above, but run it prior to any queries that update your data.

    Just a thought, in most audit trails, only the value changed is tracked to reduce database size. This is more complex in MS Access (unless your datasource is MS SQL or Oracle) but could still be done entirely in Access with a bit of coding.

    HTH,

    Robert

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

Similar Threads

  1. Replies: 3
    Last Post: 01-21-2010, 08:10 PM
  2. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  3. Update table
    By metro17 in forum Forms
    Replies: 0
    Last Post: 09-23-2009, 04:42 PM
  4. Replies: 4
    Last Post: 09-03-2009, 02:01 PM
  5. Editing a Linked Table
    By amndza in forum Access
    Replies: 2
    Last Post: 01-21-2009, 01: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