Results 1 to 2 of 2
  1. #1
    smg is offline Competent Performer
    Windows XP Access 2010 64bit
    Join Date
    Apr 2019
    Posts
    121

    entry in form writes to table


    I have a form that allows users to add a Location value not in the form's combo box drop down list just by typing it in and requeries so it appears. The added value does appear in the detail table from the form but does not appear in the Location table. How do I make that happen?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Apparently, referential integrity is not enforced.

    First, combobox LimitToList property has to be set to Yes. Then code in combobox NotInList event adds new record to Location table, requeries combobox, and populates field. This is a common topic. Here is one reference https://docs.microsoft.com/en-us/off...oBox.NotInList
    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. Access over writes an existing record.
    By gg80 in forum Access
    Replies: 8
    Last Post: 06-22-2015, 01:25 PM
  2. Replies: 3
    Last Post: 06-04-2015, 09:48 AM
  3. Form that writes into two tables
    By Zuca86 in forum Forms
    Replies: 6
    Last Post: 04-04-2013, 02:27 PM
  4. Replies: 1
    Last Post: 08-13-2010, 10:10 PM
  5. Replies: 3
    Last Post: 08-08-2010, 05:33 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