Results 1 to 2 of 2
  1. #1
    rhubarb is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76

    Filtering by multiple fields

    I have a report form that a user can select a single filter from a list box. Items include: date, job address, etc. They highlight "Date Range," insert a date range in the boxes provided to the right and select the "Preview" button and it produces reports from that range. I want to be able to select a "Date Range" and a "Job Address." Is it possible to do this with a single list box? Suppose the user can CTRL click the fields to search by? I feel like the list box is the wrong way to go but it was good when it was a single field they wanted to filter by.



    Thanks for any guidance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Making one listbox work for multiple criteria would be complicated.

    Review these options:

    1. parameterized query as report RecordSource (I am guessing you already do this with one criteria)
    Can use LIKE with wildcard for multiple parameters to allow for flexibility to use any combination of parameters.
    http://datapigtechnologies.com/flash...earchform.html
    http://datapigtechnologies.com/flash...mtoreport.html

    2. VBA code to construct filter criteria http://allenbrowne.com/ser-62.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: 2
    Last Post: 04-15-2013, 03:05 PM
  2. Replies: 5
    Last Post: 08-07-2012, 10:12 PM
  3. Replies: 2
    Last Post: 02-20-2012, 08:32 AM
  4. Replies: 1
    Last Post: 08-09-2011, 11:13 AM
  5. Multiple filtering options in vba
    By eww in forum Programming
    Replies: 2
    Last Post: 09-28-2010, 01:46 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