Results 1 to 7 of 7
  1. #1
    jalb is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Jan 2012
    Location
    Florida
    Posts
    11

    Post Remove filter

    I have a form that I would like the enduser to be able to filter out a record, make changes, and then be able to Remove Filter, to repeat the process. I currently can only do this by using the icon on the toolbar to be able to remove the filter. Can anyone help with creating a command button to remove the filter, so a new record can be filtered?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848

  3. #3
    jalb is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Jan 2012
    Location
    Florida
    Posts
    11
    That did not work. I tried putting a toggle on my form, but that just greys out my page. Here is more specifics.

    Open New form
    Filter for ClaimNumber
    Edit data on form pertaining to that claim number
    RemoveFilter
    Filter for ClaimNumber
    Edit data on form pertaining to that claim number
    RemoveFilter

    So if I could have a button on the form for the user to click, with these perameters.
    Reset Data for your next search

    Thank you,
    Kim

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Here is a tutorial on how I would do it.

    http://www.datapigtechnologies.com/f...tomfilter.html

  5. #5
    jalb is offline Novice
    Windows 7 64bit Access 2002
    Join Date
    Jan 2012
    Location
    Florida
    Posts
    11
    Hello,

    No, this is not what I am looking for, it wanted me to make a combo box, and then a refresh on that data selected. I want to be able to put the cursor in the field, filter the data, then instead of clicking the icon for remove filter, I want it to be a control box on the form that removes the filter, starting fresh.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Perhaps you can describe what you want using some sample data.

    I'm unclear how you would
    put the cursor in the field, filter the data,
    what filter would you be using?

    What exactly is
    a control box on the form
    that removes the filter? What event of the "control box" do you intend to use?

    I'm thinking you are telling us how to do something and NOT what you want to happen, but perhaps your response will clarify things.

  7. #7
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    I didn't realize that you were trying to filter carte blanche. I thought that you would be only filtering on one field. Well, that said, I am not sure that you can turn a filter off with VBA if it has not been turned on with VBA. Having said that, here is some untested VBA to try out.

    Put it on a command button in the on Click event
    Code:
    If me.filterOn = True Then
    me.filterOn = False
    End if

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

Similar Threads

  1. How to filter dates using an apply filter code.
    By Jgreenfield in forum Reports
    Replies: 4
    Last Post: 11-15-2011, 01:38 PM
  2. Try to remove everything to the right of SF
    By murphy in forum Queries
    Replies: 2
    Last Post: 09-15-2011, 03:20 PM
  3. How do I remove a filter
    By cowboy in forum Forms
    Replies: 7
    Last Post: 04-21-2010, 10:13 AM
  4. Replies: 4
    Last Post: 02-01-2010, 05:21 AM
  5. Remove Filter and GoToRecord
    By ombadboy in forum Programming
    Replies: 0
    Last Post: 09-04-2009, 07:35 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