Results 1 to 3 of 3
  1. #1
    Deisun is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    14

    Smart Search multiple fields?


    Hey guys not sure if this belongs in the programming section or query section.

    If I wanted my searchbox to be able to search not only individual fields but also combinations of those fields together, would that involve using concatenation on a SQL query of the fields?

    For instance:

    Right now I have 3 fields: First Name, Last Name, Phone #

    Right now I can search for "James" and find all the James' in my table.
    However, if I search for "James Brown", I want to be able to find him....but that uses 2 different fields. What should I look at to do this? Having the SQL query concatenate the First and Last name fields together?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    in query design you would put the criteria 'James' in both columns but in differing rows....this makes it an OR query.....

    be sure to get yourself an Access textbook available from Amazon or any large bookstore as this will cover such things for you and alot more....

  3. #3
    apr pillai's Avatar
    apr pillai is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Alappuzha, India
    Posts
    209
    For multiple field search you have rightly guessed the solution. Take a look at the following Article on this subject:

    Text Search Filter Web Style

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

Similar Threads

  1. Search across multiple fields
    By Nexus13 in forum Programming
    Replies: 2
    Last Post: 07-08-2011, 02:38 PM
  2. Help with Search Fields
    By jhawk in forum Forms
    Replies: 2
    Last Post: 03-16-2011, 08:42 AM
  3. Need a 'smart' field
    By doci4a in forum Programming
    Replies: 5
    Last Post: 03-04-2011, 09:43 AM
  4. combo box to search multiple fields
    By jo15765 in forum Forms
    Replies: 21
    Last Post: 12-23-2010, 03:28 PM
  5. Replies: 4
    Last Post: 09-22-2010, 01:47 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