Results 1 to 4 of 4
  1. #1
    bstale1 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    2

    Fill in field on one table will update in another table

    Hello,

    I am learning access as I go. I two tables and the two tables have a column with the same name and information. On my form, if I update information, I would like it update the other table. How do I go about doing this. (I am think AfterUpdate) I would appreciate any information

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    make an update query.
    this query will join the 2 tables on the common field,
    then update the fields needed.

    most everything is done with queries.

  3. #3
    bstale1 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    2
    I think I did not ask my question correctly. The fields are blank in both tables. If I data entry in my form, I would like for it to update into the other table.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    This is not a normal thing to do because it violates the rules of normalization.

    But to answer your question, I would use the FORM after update event to get the data from the controls on the form and execute an Append query that appends the data to the 2nd table.


    But now you EDIT a record that has already been entered into both tables. When you save the edited form, the same record (with edits) is entered into the 2nd table again. Not what you want...

    Now you have to have code to determine if the record being saved is an existing record or a new record. If a new record, append the data, if existing execute an Update query on the 2nd table.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-23-2014, 02:20 PM
  2. Auto-fill one field from another table
    By tasoper in forum Access
    Replies: 3
    Last Post: 06-13-2014, 07:17 AM
  3. Replies: 3
    Last Post: 03-07-2014, 10:39 AM
  4. Replies: 3
    Last Post: 12-24-2013, 04:20 PM
  5. Combo Box auto fill and update table
    By memmons in forum Access
    Replies: 4
    Last Post: 09-27-2012, 11:58 AM

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