Results 1 to 5 of 5
  1. #1
    MS_Access_User is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    5

    New values added to autofill-entry based on table

    Perhaps not the correct place to ask, but I was unsure which of the other sections this should go in.



    I am new to Access, and I wish to create a database of, say dog breeds. I know how to make a dropdown list based on a table, but is there a way of making it so that new entries which are not found in the table, are automatically added to the table?

    For example, if the table already contains "German shepherd", then the word will fill out when the user types in "German". However, if the user wish to write "German (some other breed)", is there a way of making it so that that new word is added to the list for future entries?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    use the 'on not in list' event

    see this link for a number of suggestions

    https://nortonsafe.search.ask.com/we...doi=2016-09-01

  3. #3
    MS_Access_User is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    5
    Great, thanks. I works like a charm.

    One question that I didn't find a good answer to; is it possible to use a similar function for a combobox where the user can select multiple values?

  4. #4
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49
    Yes, you can also use the List Items Edit Form property (with Allow Value List Edits set to yes). In that case you could have a form pop up where the user could confirm the new breed's addition (and perhaps enter more data in other fields). But if you want to keep it simple yes, use the NotInList event for both list boxes and combo boxes.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    a combobox where the user can select multiple values?
    I presume you mean a combo based on a multivalue field - if so, probably, I don't used them myself so can't really suggest anything. I'm guessing you will need to base your criteria on the .value property

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

Similar Threads

  1. Change Table Index Values Based on query Values
    By thuzkee02 in forum Import/Export Data
    Replies: 2
    Last Post: 11-24-2015, 11:45 PM
  2. Replies: 3
    Last Post: 06-04-2015, 09:48 AM
  3. Replies: 12
    Last Post: 10-10-2013, 11:51 AM
  4. Replies: 1
    Last Post: 02-16-2013, 11:36 AM
  5. Replies: 2
    Last Post: 11-12-2012, 03:52 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