Results 1 to 2 of 2
  1. #1
    DWSKAMS is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2013
    Posts
    1

    Query Criteria

    I'm trying to build a query that gives the user the option to pick what they want to search for in a specific column of the table...



    Status column contains either "Lost" or "Found"

    I want the user to be able to select either lost, found or show them all.

    In the Criteria field I am using the current statement [Are you searching for "Lost", "Found" or "both"?]

    Searching for lost or found is easy but how can I search for both? I have tried using a wildcard * only, but that doesn't work.

    I'm not familiar with code or visual basic, so I am only working with Macros and simple queries.

    Thanks for the help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Here is example of dynamic parameterized query method of filtering records: http://datapigtechnologies.com/flash...tomfilter.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 05-02-2013, 11:07 AM
  2. Replies: 5
    Last Post: 05-01-2013, 11:39 AM
  3. Replies: 5
    Last Post: 09-20-2012, 03:27 PM
  4. Replies: 5
    Last Post: 08-02-2012, 09:44 AM
  5. Replies: 1
    Last Post: 07-13-2011, 11:00 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