Results 1 to 9 of 9
  1. #1
    JohnBlue is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2015
    Posts
    6

    How do I make a search like this?

    (Ok, so I made a post like this yesterday but people seemed to be confused because I used the term ''row'' instead of ''cell''.
    I can work with a cell search though.


    I am correcting this now. I also removed some questions)


    I want to be able to make searches for multiple sets of characters at the same time.


    The default setting cancels a result if I have inputed a set that is not on that cell (I am talking about excel cells).

    Something that could be used in a store or by a lawyer looking for specifics.

    So these are what I am looking for:


    1.) I want any cell with any of the words I type to show on the results.

    2.) I want the cells with the most matches to show up first.

  2. #2
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Your query will include any and all fields you need. If you are searching by lets, say an ItemName, then in your query field that is ItemName select sort to be Where, and in the criteria field type [Type Item Name] and when you run the query you will be prompted to type in the item name you are searching for. As far as organizing them the way you want I do not know, sorry.

  3. #3
    JohnBlue is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2015
    Posts
    6
    But how do I do that? Like, what do I click? I really don't know much about this. I was just lead to access by people I asked for this.
    I can't find a way to search for multiple strings and not having the search angine block any cell tht doesn't have every last one of these.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Tables in Access are the things that store the data. They have columns and they have rows. Columns go up and down. Rows go side to side. Columns have fields and do not have cells. Rows have fields and do not have cells. Excel has cells. A single row in a table represents a record.

    Searching across an entire row is not a typical need. It requires advanced techniques. In the other thread, orange provided a link to an example DB that does this.
    Last edited by June7; 06-18-2015 at 04:10 PM.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    "Row" and "cell" are Excel terms.
    "Record" and "Field" are Access terms for approximately the same things.

    Still not really clear. What do you mean by "Set"?

    Maybe you could give an example: "I want to search a record set (1 or more tables) to find the value 'ABC')". Or is it values??



    1.) I want any cell with any of the words I type to show on the results.

    2.) I want the cells with the most matches to show up first.
    1) After re-reading your post, maybe this will help or at least get you started.
    See http://www.allenbrowne.com/ser-62code.html

    2) After you find all of the search terms, you would have to group & count the results, then sort descending. (thinking out loud)

    Will probably require a lot of VBA code...... but do-able.

  6. #6
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Quote Originally Posted by JohnBlue View Post
    But how do I do that? Like, what do I click? I really don't know much about this. I was just lead to access by people I asked for this.
    I can't find a way to search for multiple strings and not having the search angine block any cell tht doesn't have every last one of these.
    Click 'Create' tab and select 'Design Query'. Select the table(s) that contain the fields that have the data you want to see returned in your search. Add those tables, then drag and drop those fields into the bottom portion of the query builder.

    I re-read your original post. It sounds like you want to be able to type in search criterion when you run the query (search) for multiple fields? So like search an item type and a item brand? (example of store): search soups that are also Campbell. Am i right in thinking this?

    If you are being blocked becauase the field does not contain everything use wildcards. (*,?,# etc.) They can be helpful to fill in search criteria without specifying the exact character, giving you a little more freedom with what you want your query to return. Here is a link for access wildcards:
    https://support.office.com/en-us/art...d12d1#bmansi89

  7. #7
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,737
    johnBlue,

    Did you look at the demo database that I suggested in this post
    https://www.accessforums.net/access/...tml#post280213

    When people don't understand your question, I don't think posting another similar post or re-posting the same question is helpful.

    When you ask a question, and get answers, keep working on that post/issue. You can clarify, provide examples, post a copy of your database, or tell readers you have given up.

    But re-posting is as confusing as a confusing post itself.

    I gave you a link to a universal search routine and database. I suggested it may not meet your requirements because, I, like others, didn't really understand what you needed. And still don't.

    Take a look at the universal search, see if it meets your needs. If it does great, if it doesn't then please tell us so and tell us more about what it is you are trying to accomplish. Examples, and plain simple English helps with communications.

    Steve has already mentioned that "cell" is an Excel/spreadsheet term -- not database.

    Good luck.

  8. #8
    JohnBlue is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2015
    Posts
    6
    Yes, I am trying to put it into practice. Thank you, it could be quite useful.
    I didn't have much time to reply these last two days. Now I can focus on it properly.

  9. #9
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,737

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

Similar Threads

  1. How do I make a search like this?
    By JohnBlue in forum Access
    Replies: 6
    Last Post: 06-18-2015, 01:11 PM
  2. Replies: 9
    Last Post: 11-04-2014, 08:06 PM
  3. Replies: 10
    Last Post: 08-02-2012, 08:32 AM
  4. Replies: 12
    Last Post: 06-08-2012, 02:37 AM
  5. How to make Search forms
    By Spark in forum Forms
    Replies: 7
    Last Post: 09-12-2011, 05:37 AM

Tags for this Thread

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