Results 1 to 2 of 2
  1. #1
    craig1988 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2014
    Posts
    82

    Usign a multi criteria search form as a select query

    Hi

    I am having some problems with a select query that I am designing.

    So basically I have a form with 10 text boxes. I also have a SELECT Query that uses the values of the text boxes as Criteria parameters.

    I want to use the form as a search engine that I can use to search under one or more criteria.

    There are a couple of scenarios to search under:


    I want to search for an exact match: [Forms]![FSearchTransactions].[JPMCRefSearch] That seems to work fine.


    I want to search for the end of a number: Like "*[Forms]![FSearchTransactions]![IBANSearch]" This does not work??
    I want to search for part of name (lets say B SKY B, and I search for SKY): Like "*[Forms]![FSearchTransactions]![IBANSearch]*"

    I am sure it is a silly syntax error but it is very frustrating.

    Can anybody help me with these problems??

    Regards
    Craig

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    make a table, in it is the list of queries you want to choose
    EXACT
    END o NUMBER
    PART

    for each of these values in the table, there would be a query
    qsFindExact
    qsFindEnd
    qsFindPart
    Each of these queries would be setup like you showed. full, a partial, or wildcard.

    so the combo (of the type of search) would have
    EXACT qsFindExact
    END o NUMBER qsFindEnd
    PART qsFindPart


    User picks the search out of the combo
    fills in the search text box
    runs search
    the run button event would run the query in the combo box.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-23-2014, 08:39 AM
  2. Multi Select List Box on a Search Form
    By Vetgeorge in forum Forms
    Replies: 1
    Last Post: 09-28-2013, 08:11 PM
  3. Replies: 1
    Last Post: 02-12-2013, 10:41 AM
  4. Replies: 5
    Last Post: 08-02-2012, 09:44 AM
  5. Multi-Select List Box as Criteria in Query
    By broadwat in forum Queries
    Replies: 6
    Last Post: 09-19-2011, 07: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