Results 1 to 5 of 5
  1. #1
    ryanmce92 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    48

    Issue updating data

    Sorry for the vague title, this is kind of hard to explain so please bear with me.



    I have created a supplier database with editing and adding forms to tables within the database. I have a supplier table, a product table and a supplier/product table.

    The users have a form called edit a supplier, when they e.g edit the name of a supplier, it does not update the records already entered the supplier/product table.

    I would like it that when the data is edited in the Supplier table it will update the data in the supplier/product table and any other tables & forms associated with the supplier name.

    Any help with this would be greatly appreciated, thank you.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You can bind a form to a table or updateable query in order to UPDATE records.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Normally you'd have an ID number in the supplier table, and only the ID would be stored in related tables. That way, when the name changes, it will flow through automatically.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    As Paul suggests, save the key ID value, not the actual descriptive value. If you save the descriptor, will have to run an UPDATE sql action to modify existing records, which would look like:

    UPDATE SupplierProducts SET Supplier="new name" WHERE Supplier="old name";

    Or maybe set the descriptive text field in Suppliers as the key and set relationship linking to SuppliersProducts in Relationship builder to Cascade Update. I have never used Cascade Update. Actually, seldom set relationships. I manage data integrity with design and code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ryanmce92 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    48
    Hi All,

    June I tried the relationship builder and used the cascade update feature and its worked a treat, thank you all so much!!

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

Similar Threads

  1. Query Data not updating
    By junior6202 in forum Access
    Replies: 2
    Last Post: 10-02-2014, 12:47 PM
  2. Replies: 6
    Last Post: 04-03-2014, 02:02 PM
  3. updating data
    By Sarge, USMC in forum Access
    Replies: 1
    Last Post: 01-05-2013, 09:11 PM
  4. Replies: 3
    Last Post: 08-22-2012, 03:51 PM
  5. Importing and updating data.
    By mikej2009 in forum Import/Export Data
    Replies: 1
    Last Post: 05-23-2010, 11:30 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