Results 1 to 2 of 2
  1. #1
    ezr is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2014
    Posts
    1

    Use auto complete feature when typing word in middle of field

    I'm working with a DB to enter orders for picking. I have an item list that I'm linking to when entering orders, and bringing in the data from the item list such as item location etc.
    It's setup right now that when I type the first couple of letters into the item field it automatically brings up the matching items and if I click enter it completes the item and brings in the other fields from the item list.
    example: If I type in 'tom' I get back 'tomato', 'tomato sauce' etc. and when I choose the right one and hit enter it fills up the rest of the required info such as item location.
    What I would like it to do is have the auto complete also check for middle words.


    example: when I type 'alm' it returns 'almonds', 'almond milk', but don't return 'container almonds' or 'container roasted almonds' etc.
    Is there a way to do that?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    So you want the combobox list to sort by finding the typed input anywhere in the string. I think not. AutoExpand cannot be changed. You could have the input into a textbox then set the combobox RowSource as:

    SELECT [fieldname] FROM tablename WHERE [fieldname] LIKE "*" & [textboxname] & "*";

    This is called cascading or dependent combobox.
    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: 5
    Last Post: 10-24-2013, 04:17 PM
  2. Auto-Increment feature
    By Philosophaie in forum Forms
    Replies: 1
    Last Post: 08-19-2012, 10:37 PM
  3. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  4. Auto complete field on form
    By oam in forum Access
    Replies: 5
    Last Post: 09-23-2011, 12:45 PM
  5. Replies: 1
    Last Post: 11-21-2010, 02:20 AM

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