Results 1 to 6 of 6
  1. #1
    arios1234 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Virginia
    Posts
    3

    Combo Box update to underlying table


    I have 2 table.
    Table 1 is the data I use for the combo box table2
    When I select a value from Table 1 the data is stored in table 2

    However when I delete a value in table 1 , table 2 does not update.

    Can someone help. Been at it for a weeks..

    Note. I am not using form but a datasheet..

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    It won't. You will have to edit the record(s) in table 2.

    Actually, if you have Enforce Relational Integrity enabled in the Relationships builder, should not even be able to delete record from table 1 if value is used in table 2.
    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.

  3. #3
    arios1234 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Virginia
    Posts
    3
    Thank can you recommend a better way

  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,646
    Except for Data Macros introduced with Access 2010, cannot have code behind tables. Use forms.

    Why would you want to delete record from table 1?
    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
    arios1234 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Virginia
    Posts
    3

    reply

    Quote Originally Posted by arios1234 View Post
    Thank can you recommend a better way


    There are times to change
    table 1 when the data is no longer valid



    Thanks

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    But the data is already used in table 2. What do you want to do about the record in table 2?

    You can just change data in table 1 record. However, this will affect existing records in table 2. Might not be desirable to change history.

    Deleting records should be a rare event. If you no longer want the record in combobox list, have a yes/no field in table 1 that can be used to filter records.
    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.

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

Similar Threads

  1. Combo box corrupting underlying table
    By richard1941 in forum Forms
    Replies: 3
    Last Post: 12-05-2014, 07:43 PM
  2. Replies: 4
    Last Post: 11-25-2014, 11:23 AM
  3. Replies: 12
    Last Post: 11-11-2014, 02:10 PM
  4. Replies: 0
    Last Post: 03-13-2012, 12:57 PM
  5. Form not updating underlying table
    By Kirsti in forum Forms
    Replies: 8
    Last Post: 02-10-2012, 12:23 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