Results 1 to 4 of 4
  1. #1
    dsegu is offline Novice
    Windows 8 Access 2003
    Join Date
    Aug 2014
    Posts
    5

    Running a Query using "Like" statement

    Hello,



    I am looking to update field A where field B meets the following criteria:

    Like "*X" Or Like "*fuel" Or Like "*wards" Or Like "*gas" Or Like "*ward" Or Like "*allon" Or Like "*allons" Or Like "*wards" Or Like "*oints"

    It seems to be working however I when I run the query not all occurences of the value are being captured. I am seeing over 200 occurences of just the value "*fuel" in my table however the query is only finding 18 total using all of the specified values in my criteria.

    Thoughts? I am open to suggestions.

  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,652
    With your criteria, "fuel" would have to be at the very end of the text; is it? Try this as a test:

    Like "*fuel*"
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dsegu is offline Novice
    Windows 8 Access 2003
    Join Date
    Aug 2014
    Posts
    5

    Thumbs up

    Quote Originally Posted by pbaldy View Post
    With your criteria, "fuel" would have to be at the very end of the text; is it? Try this as a test:

    Like "*fuel*"
    It worked! Thank you so much.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 10-23-2013, 04:01 PM
  2. Running "update query" automatically
    By dargo72 in forum Queries
    Replies: 6
    Last Post: 10-23-2012, 09:16 AM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. Running a query with an "if/than" filter
    By AudiA4_20T in forum Queries
    Replies: 7
    Last Post: 06-08-2012, 09:36 AM
  5. Replies: 1
    Last Post: 05-23-2012, 10:05 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