Results 1 to 4 of 4
  1. #1
    Tlyles is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Dec 2015
    Location
    Georgia
    Posts
    2

    Adding new data to a form based on a lookup table

    I have a form that enters data into a lookup table, but I am only able to use items already in the tables used to make the lookup table.



    I get this error message: The text you entered isn't an item in the list.

    I know there is a way to modify a form like this so that I can enter new data into the tables via the form, but I can't figure it out.

    Anyone know what I should be doing? Also, pls let me know if there is a clearer way to explain my problem.

    Thanks.

    Toby

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Please give us more info, even an example with sample data, about your lookup table.

  3. #3
    Tlyles is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Dec 2015
    Location
    Georgia
    Posts
    2
    I have a lookup table that comes from three other tables: name-table, month-table, action-table.

    The month-table and action-table never change. They include every month of the year and actions like update, compile, email.

    I do add new names to the name-table, but I want to do this via my form.

    The lookup table tells me which action was taken for each name during any given month.

    The lookup table looks like this:

    Name Action Month
    Iowa Update November
    Idaho Update October
    Illinois Update August
    Iowa Compile November
    Idaho Email September
    Illinois Compile November
    Iowa Update October
    Idaho Update November
    Illinois Update November

    The FORM I use to enter the data looks like this:

    Name [entry box]
    Month [entry box]
    Action [entry box]

    Every time I try to enter a name that is not already in the name-table, I get this error message: The text you entered isn't an item in the list.

    I know there is a way to modify a form like this so that I can enter new data into the tables via the form, but I can't figure it out.

    Anyone know what I should be doing? Also, pls let me know if there is a clearer way to explain my problem.
    Toby

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    One way is with code in the combobox NotInList event. This is a common topic. Start with https://www.accessforums.net/access/...ate-55139.html
    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. Adding Lookup Columns to a Table
    By Lou_Reed in forum Access
    Replies: 1
    Last Post: 09-21-2015, 12:28 PM
  2. Replies: 3
    Last Post: 05-08-2015, 11:08 AM
  3. Replies: 3
    Last Post: 11-24-2012, 05:35 PM
  4. Replies: 3
    Last Post: 12-19-2011, 11:18 AM
  5. Replies: 1
    Last Post: 11-04-2010, 12:57 PM

Tags for this Thread

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