Results 1 to 3 of 3
  1. #1
    dvgef2 is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2013
    Posts
    25

    Find string in multiple rows of a query datasheet


    Good Morning,

    Is it possible to search through multiple columns of a Table and return only those rows of data that have an exact match of a string without having to put the string in the Criteria row for each applicable column in the query?

    I don't know how to do SQL but the query I need has several 'like' columns in it such as Item description or Unit of Issue, quantity etc. They are distinguished in the Table as Item Description1, Item Description2 etc. up to 10. It is kind of like a receipt you get in a grocery store where you have several lines of all the things you bought with the description, quantity, cost, unit of issue etc. listed on the receipt.

    I would like to search through all the item descriptions to find certain things. One example would be to search through 'ItemDescript1' through 'ItemDescript10' and find the string "Lettuce" without having to go to each applicable column in the query and type Like "Lettuce" in the Criteria row. It would be nice for the query to ask for the string first and then search all the columns in the table for that string.

    I don't always express myself very well and I apologize in advance if there is nothing but confusion in this question. Thanks for your time!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  3. #3
    dvgef2 is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2013
    Posts
    25
    Thank you for your quick response Orange! I think that this will work....if I can figure out how to do it right in my database.

    I will work with it, thanks again for your help!

    Dave

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

Similar Threads

  1. Replies: 10
    Last Post: 02-01-2014, 12:23 PM
  2. Replies: 2
    Last Post: 12-12-2013, 02:13 PM
  3. Replies: 3
    Last Post: 10-17-2012, 09:24 AM
  4. Replies: 3
    Last Post: 07-16-2012, 11:09 AM
  5. Replies: 1
    Last Post: 05-30-2011, 09:38 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