Results 1 to 2 of 2
  1. #1
    mfd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    1

    Adding values to the lookup list from within the form

    I have a question. Go easy on me, I'm a complete novice.



    I want my form to have a lookup field where I can type some text in and it will autopopulate the field based on previous entries in that field. So if I typed in a person's last name that was previously entered, it will finish it for you as soon as you type in a few letters, or give you several options based on the first few letters. And if the name was not previously entered, will allow you to type in the name and it will be included for future entries. Hopefully I explained that logically. Seems like there should be an easy way to do this, but I can't figure it out.

    Thanks in advance,

    M

  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,624
    Use a combobox with AutoExpand property set to Yes.

    Is this to input search criteria or to input data into record?

    Options for source of the combobox list items could be a lookup table or the field the data is saved in.

    If the lookup table is used, set the LimitToList property as Yes and will need VBA code behind the NotInList event to create new record in the lookup table.

    If you want the combobox to just assist users with input but allow any text, set LimitToList as No and the RowSource could simply be:

    SELECT fieldname FROM tablename ORDER BY fieldname;
    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. Replies: 4
    Last Post: 06-22-2014, 06:47 PM
  2. Adding values in postcode lookup form to another form
    By robertmarkdudley95 in forum Programming
    Replies: 3
    Last Post: 03-30-2012, 02:00 PM
  3. Lookup values after entering data in form
    By Hulkdog in forum Forms
    Replies: 2
    Last Post: 01-23-2012, 12:31 PM
  4. Replies: 2
    Last Post: 01-01-2012, 09:32 AM
  5. Lookup List in a Form for Table Record entry...
    By noaccessguru in forum Forms
    Replies: 1
    Last Post: 05-05-2011, 12:35 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