Results 1 to 6 of 6
  1. #1
    wuzhuo77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    4

    How to clear filter when I close out tables?

    Hello everyone,

    I have created a switchboard for my dataset. Once I click on the button, I could enter the parameter value to filter on the ID I need.
    Ex. Enter ID number: 12345


    Once I get in there, I should have all records with ID 12345. I want to filter these data further, I might do ID2=123456
    Now, I have all the records whose ID is 12345 and ID2 is 123456.
    I closed this table and reopen it again, I still need to enter ID number 12345 but it automatically also filter on 123456. I have to clear the second filter every time. I'm wondering if there is anyway to prevent it from showing the previous history search? Please help me! Thank you!

  2. #2
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Check in properties table under Data tab if the Filter on Load is set to yes for that filter.

  3. #3
    wuzhuo77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    4
    Yep, the filter on load in form is set to "yes". I have multiple columns such as id id2 address, etc. Each column under property sheet doesn't have a "filter on load" option.

  4. #4
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    The form as a whole will have the Filter on Load property. On form's prop sheet check to see if the Filter is set to filter the id2, and if filter on load is set to yes then set it to no or delete the filter.

  5. #5
    wuzhuo77 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    4
    The filter under form is set to "Enter ID number" (first ID) and the Filter on Load is set to yes. I still want to keep the filter because I would like to filter by the first ID but it's a matter of how to clear the second or later filters when I close it out. If I set Filter on Load to no, it will remove all my filters. I still want to have the parameter value entered every time to restrict on certain ID only.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You have a form that is based on table with a dynamic filter parameter? I have never done this. I don't use tables or queries with dynamic filter parameters. I apply all filter criteria to report when it is opened and/or its Filter property after opened.
    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. Clear subform 'on-close'
    By MikeN in forum Forms
    Replies: 3
    Last Post: 01-11-2015, 03:51 PM
  2. Replies: 4
    Last Post: 01-31-2014, 11:47 AM
  3. clear filter
    By amerifax in forum Access
    Replies: 2
    Last Post: 05-30-2013, 05:11 AM
  4. Reset Filter On Close
    By Power in forum Forms
    Replies: 1
    Last Post: 07-26-2011, 02:41 PM
  5. Replies: 1
    Last Post: 03-28-2010, 08:06 AM

Tags for this Thread

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