+ Reply to Thread
Results 1 to 2 of 2

database keyword search

  1. #1
    Registered User
    Join Date
    11-11-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    4

    database keyword search

    Hi all,

    I’m not so great with all this, so let me apologize beforehand if this topic is in the wrong area.

    So we have this program that works off our SQL 2008 standard database. The company we bought it from is pretty unhelpful when it comes to tech stuff, so I haven’t been able to get many answers from them.

    The problem we are facing is a basically a searching problem.

    In their program, which is a contact database, there is a query tool to search for particular keywords in particular fields, so I could search words like “kyle” in the contacts name field, and it would return people whose contact name begins with “kyle”.

    The problem is that their search function only searches the columns for the first word word of the string, so the data field would have to begin with “kyle” for it to return results. If there was a contact whose name was “david kyle jr.” the search would never return that value as his name doesn’t start with “kyle”.

    This problem holds true when searching the contacts notes field, which becomes totally useless as notes entered on a contact could contain a particular word anywhere within the text entered.

    So my question is, is there a way to program excel/access/whatever to connect to a SQL database, look only in the table named contacts, and search the column “notes” for any reference to a keyword that the user types, and then return all those contacts and their details? Or does a search like this have to be done in SQL and exported to a spreadsheet?

    Any advice for this would be awesome, thank you.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,922

    Re: database keyword search

    If you are able to use Access as a front end to search the tables in your data base, you could build a query and in the criteria for whatever fields you wish to return data, you could put a Like statement with a wildcard.

    An example would be in LastName field. In the criteria, type LIKE *Smith* and the results would return all records in that field having Smith as any part, ie. Smithfield, Blacksmith, Smith, etc.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1