Results 1 to 4 of 4
  1. #1
    mit is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    12

    like operator in access query

    Hi,
    I have a field in my table called category,I want to find the data in this field which has this string "dentist" in it.where ever it is(left,write,middle of the text),I should search it by a query to find records with this string.



    I can use like operator,for example like dentist*
    but it gives me the data which has the dentist word at the beginning of the word not all data which has "dentist" in them.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I think you need to use Like *dentist*
    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
    mit is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    12
    but this one gives me dentist which is in the middle of string.am I right?

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    It should return all records in which "dentist" exists. At the Start, In the Middle or At the End.
    Please try it and post back with your findings!
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Is the Access 'Equals' operator broken?
    By AccessPonderer in forum Queries
    Replies: 0
    Last Post: 03-18-2011, 09:00 AM
  2. in operator
    By pchang in forum Access
    Replies: 1
    Last Post: 01-16-2011, 06:24 AM
  3. Replies: 1
    Last Post: 10-07-2009, 07:36 AM
  4. Making the like operator work for fields
    By olidav911 in forum Queries
    Replies: 2
    Last Post: 06-06-2009, 01:57 AM
  5. Missing Operator error
    By data123 in forum Forms
    Replies: 1
    Last Post: 03-15-2009, 04:34 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