Results 1 to 8 of 8
  1. #1
    Jeff-H is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    4

    Update two tables from one input form


    Hello,
    This should be simple but I have been unable to find an answer.
    I would like to input a new record on a form and update two different tables from the same input data. Both tables are identical.
    Thanks for any help.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    OK, I've got to ask: Why do you have two identical tables?

  3. #3
    Jeff-H is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    4

    reason for two tables

    I want to add records to the main table and at the same time maintain a "transactional" table. The second "transactional" table will be cleared at the end of each quarter.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm sorry for being so inquisitive but is that because you can not determine what records in the "main" table are from what quarter?

  5. #5
    Jeff-H is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    4
    The main database will signed off by management each quarter. After sign off and end users will add new records and also edit records. We are looking to track the changes each quarter, therefore the second table.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I take it you do not have an AuditTrail built into this system? Assuming each record is in fact a *new* record then you should be able to do what you want in the BeforeUpdate event of the Form using another RecordSet.

  7. #7
    Jeff-H is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    4
    Correct - I have no audit trail built into the application.
    I will be doing both:
    1. opening the form and adding new records
    2. opening the form with an existing record through a prior search and editing certain fields.
    I want a record in each table for both types of entries.
    I have not used VBA or recordset so any help would be useful.
    Thanks

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I guess I don't understand what "signing off" the quarter involves. I think dates on records and an AuditTrail solves all of your issues but I could be wrong here.

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

Similar Threads

  1. Replies: 5
    Last Post: 09-20-2013, 08:36 AM
  2. Update Multiple tables from one form
    By KenK in forum Forms
    Replies: 0
    Last Post: 10-30-2009, 08:44 PM
  3. auto update of two linked tables
    By colenzo in forum Access
    Replies: 4
    Last Post: 07-20-2009, 09:08 AM
  4. update tables via forms
    By jazoo in forum Forms
    Replies: 0
    Last Post: 09-16-2008, 05:54 AM
  5. Update Tables
    By lschlitt in forum Programming
    Replies: 2
    Last Post: 05-28-2006, 02:11 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