+ Reply to Thread
Results 1 to 2 of 2

Apply multiple filters based on custom filter form [macro?]

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Apply multiple filters based on custom filter form [macro?]

    Hello.

    While I'm confident in my abilities in Excel, I'm pretty inexperienced with Access. However, I have a project which requires the use of an Access DB and I have most of it finished except one portion.

    What I am trying to do is create a Filter form. The filter form is currently not connected to any tables as I don't want the data editable from the form itself; it just has a few textboxes/comboboxes and a button (Apply Filters). It opens in Windowed mode.
    When the form is opened, I have a macro opens up a second form. This second form is a datasheet view of the data I wish to filter by, and also where the data is to be modified from.

    Basically what I want to do is be able to select various criteria on the Filter form, hit apply, and have those filters apply to the datasheet, allowing for easier editing of the data.

    I can't find anything on how this might be achieved, and considering it seems like a pretty standard requirement for Access I'm also assuming there is probably a much better easier way to do this that I just haven't stumbled across yet that is built right into access. None of the users of this database have any experience in access or databases - so the 'Filter by Form' option built into Access probably won't work for them, it's too different from what they are used to. A popup filter window with a datasheet for entry is much more intuitive and something they are used to.

    ...anyone have any insights?


    Thanks!
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  2. #2
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Canada
    MS-Off Ver
    Office 2013
    Posts
    120

    Re: Apply multiple filters based on custom filter form [macro?]

    The first thing that comes to mind is that you should create a query with all the fields that are required. Your filter form should have the possible 'filter by's (or let the end user type into a text box) with defaults set in each field. The latter is incase they leave a field empty, but that too can be coded in VBA if desired.

    The query should be built so that it's criteria fields are populated by the controls in your filter form. For example, if on your form, I'll call it FilterForm, you have a field to filter names called 'NameFilter', the criteria on the field in the query would be :

    Like [Forms]![FilterForm]![NameFilter]

    Your data sheet view should be populated by this query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Data into multiple worksheets based on column in Excel and apply auto filter and freeze
    By skumarlingam in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-28-2016, 04:50 PM
  2. Unable to apply filters to multiple pivot tables at once
    By karthikck in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-28-2016, 06:32 AM
  3. How to apply multiple filters based on multiple criteria
    By bolla mani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2015, 12:18 PM
  4. How to apply multiple filters based on multiple criteria
    By bolla mani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2015, 07:03 AM
  5. How to apply multiple label filters on pivot table at once
    By babbeleme1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2013, 02:16 PM
  6. VBA code to apply custom filter to a worksheet
    By thomasp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 08:07 AM
  7. Macro to apply filters to multiple tables
    By mo0ki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 10:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1