Results 1 to 8 of 8
  1. #1
    qvqv is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2021
    Posts
    18

    Look Up Table and Automatically Enter New Values

    Hi



    If I have 'field table' holding last names, which I use to assist users to lookup last names when making a new entry into a sales table.

    This works ok, but if the lastname is not in the 'field table', is it possible to allow the user to enter a new last name, and this to included in the 'field table'.

    Many thanks

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    ...which I use to assist users to lookup last names when making a new entry into a sales table.
    I would use a combo box and use it's "Not On List" to add new names.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    accesstos's Avatar
    accesstos is offline Expert
    Windows XP Access 2007
    Join Date
    Dec 2018
    Location
    Greece
    Posts
    551
    You don't need a separate 'field table'.
    Just get the unique values of the [LastName] of the main table as rowsource of the combobox and set the Limit To List to "No".

    For example:
    Code:
    SELECT DISTINCT [LastName] FROM tblSales ORDER BY [LastName]

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    qvqv,

    Please tell us more about your business in simple plain English. You mention Sales and Lastnames --how do these relate?
    What is your database used for?

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    qvqv

    Attached is an example of my suggestion in post #2
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    qvqv is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2021
    Posts
    18
    I dont have the option ""Not On List"" "Just I will type in the list I want" which is what I am using.
    Attached Thumbnails Attached Thumbnails Access Combo Box.png  

  7. #7
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,564
    Hi
    You are describing using the Wizard to create a Combobox whose Row Source is the Table that Contains the List of Lastnames.

    Once the Combobox is created you would then use the Not In List Event to allow the user to add a Lastname to the List.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 18
    Last Post: 10-20-2017, 12:00 PM
  2. Replies: 3
    Last Post: 07-12-2016, 06:11 AM
  3. Replies: 1
    Last Post: 12-14-2014, 03:16 PM
  4. Automatically enter email address from customer table
    By Pure Salt in forum Import/Export Data
    Replies: 3
    Last Post: 07-09-2014, 08:03 AM
  5. Replies: 9
    Last Post: 08-15-2013, 04:28 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