Results 1 to 3 of 3
  1. #1
    bartiks is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2019
    Posts
    2

    Wanting to search for a name based on input

    Hello all,


    I've got 2010 and what I have is a training database. Names, dates and companies, I can search for either their name or their company. However it has to be an exact match in order for it to pull up their record out of the table.

    Is there a way to type in what you remember and then it will return all relevant entries in the table? Say I want to look for John Doe, but I forgot his last name. Could I run a search on the table for John and it returns all John's within the table? Any help would be greatly appreciated.

    My apologies for my lack of knowledge in this. I had some help getting this setup around 6 years ago and wanting to update it a little to make it a little more use friendly. Thanks in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    How are you doing it (code, query, etc)? Generally, you use Like instead of = and include wild card characters before and/or after the value depending on your needs:

    Like "John*"

    would find anything starting with John, but not Elton John.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,653
    In addition to Pauls advice, it depends how complicated you want to get. For instance a search for John wont turn up Jon.
    If you want a code solution you can add procedures such as the levenschtein distance or soundex to correct spelling mistakes.
    see the example in this post...https://www.accessforums.net/showthr...362#post423362

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

Similar Threads

  1. Multi-input search query
    By MrBologna in forum Queries
    Replies: 7
    Last Post: 09-07-2018, 04:16 PM
  2. Replies: 5
    Last Post: 09-23-2015, 02:29 PM
  3. Replies: 1
    Last Post: 11-04-2014, 12:07 PM
  4. Replies: 1
    Last Post: 01-17-2014, 04:19 PM
  5. Replies: 8
    Last Post: 09-19-2013, 06:22 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