Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    Your form label says "search by name, extension no or room number". Presume you mean AND because this will never work unless
    - each user provides EACH value, correctly separated (e.g. by comma)
    - or each user enters ,, when the middle value isn't provided (as in Con,,10) AND you trap for no value (,,)
    - and each user always enters values in the correct order
    - and you allow for partial matches by using the LIKE operator



    Either employ a search form as suggested in the link, or since you only have 3 fields, use some other design approach such as 3 unbound textboxes to enter values. Validate which ones have data and build a sql statement in code. You cannot use a stored query to reference form controls when it's possible that one or more controls don't have values. If you did, empty controls will usually result in no records. If you go this route you can get help here once you've built the form.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  2. #17
    hinchi1 is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Posts
    181
    Quote Originally Posted by isladogs View Post
    Have you seen this example http://allenbrowne.com/ser-62.html
    I will have a look, thanks for the link

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Multiple Keyword Search Access 2010 Macros
    By waseem82 in forum Macros
    Replies: 1
    Last Post: 09-05-2016, 04:06 PM
  2. 2 Field Keyword Search
    By Emma35 in forum Forms
    Replies: 11
    Last Post: 01-19-2016, 08:34 AM
  3. KEYword search from a form field
    By Al77 in forum Forms
    Replies: 2
    Last Post: 03-30-2015, 12:43 PM
  4. keyword search
    By Mbakker71 in forum Access
    Replies: 5
    Last Post: 02-05-2014, 06:03 AM
  5. Multiple Keyword Search
    By gatsby in forum Access
    Replies: 15
    Last Post: 01-21-2013, 10:53 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