Results 1 to 3 of 3
  1. #1
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29

    clear filter

    Currently this is my method to creates by filter:
    I click on the header and select "Text Filters" \ "Contains" and place my value.

    I would rather have that like a button which would probably mean creating a form, that would be a major project for my level of knowledge.

    have to change the value I'm looking for continuously. And also clear it is many times. I basically use only one field , contains. In the future I hope to have enough skill to be able to add an additional field in my search. Help is needed.


    Bob

  2. #2
    amerifax is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Location
    Wisconsin
    Posts
    29
    I used create query design. I ended up the following:


    SELECT [SC-CTY-Type].[SC], [SC-CTY-Type].[COUNTY], [SC-CTY-Type].[TYPECITY]
    FROM [SC-CTY-Type]
    WHERE ((([SC-CTY-Type].[TYPECITY])="Milwaukee"));


    I thought I would able to see Milwaukee since that was one of the items in the database. It displayed nothing.


    Bob

  3. #3
    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
    Try using the LIKE operator (untested) Examples use fictitious city names.
    Code:
    SELECT [SC-CTY-Type].[SC], [SC-CTY-Type].[COUNTY], [SC-CTY-Type].[TYPECITY]
    FROM [SC-CTY-Type]
    WHERE ((([SC-CTY-Type].[TYPECITY]) Like "[Enter City Name]" & "*"));
    The Like operator doesn't require an exact match of all characters.
    [Enter City Name] will display a prompt for user to enter characters
    The trailing "*" means "any character" -- so if you typed in "Mil" and hit enter you would get cities that BEGIN with Mil
    --that could be Milwaukee, Milbury, Milsonville.... as long as the first 3 characters match, you get a positive hit.

    If you put the "*" at the start, eg "*" & "[Enter City Name"], then the last characters of the City name would have to match the characters you type in eg Carmil, Crammil,..

    If you put in "*" & "[Enter City Name]" & "*", then you would select Cities with names that had the characters you typed in somewhere in the name eg Hommilville, New Milton...

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

Similar Threads

  1. clear form
    By slimjen in forum Forms
    Replies: 1
    Last Post: 05-16-2012, 02:53 PM
  2. Clear Form
    By hithere in forum Access
    Replies: 4
    Last Post: 03-28-2012, 09:28 AM
  3. Clear combo box
    By Cindygo in forum Forms
    Replies: 3
    Last Post: 09-19-2011, 09:25 AM
  4. Clear some fields and not others
    By funkygoorilla in forum Access
    Replies: 12
    Last Post: 08-23-2011, 07:38 AM
  5. How to clear the form?
    By Mrcams in forum Access
    Replies: 3
    Last Post: 01-03-2011, 12:15 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