Microsoft Access
  Home arrow Microsoft Access arrow Page 2 - Getting to Know Microsoft Access, Part 5: ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Microsoft Access, Part 5: Retrieving and Arranging Data Meaningfully
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2005-01-05

    Table of Contents:
  • Getting to Know Microsoft Access, Part 5: Retrieving and Arranging Data Meaningfully
  • Filtering
  • Basic Queries
  • Select Queries

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting to Know Microsoft Access, Part 5: Retrieving and Arranging Data Meaningfully - Filtering


    (Page 2 of 4 )

    Sometimes you want to see only certain records; in these cases you can filter your form, datasheet, or subdatasheet according to the criteria you specify. Filtering doesn’t delete records, it just hides certain records from view so it’s easier for you to see the records you want to see. There are five types of filters in Access:

    • Filter By Selection: Shows values identical to the one you selected. You can use filter by selection on any data type except OLE. Once you’ve selected the record or records you want to filter choose the Records | Filter | Filter by Selection menu option to apply the filter.

    • Filter Excluding Selection: Shows only those records that don’t have the value you selected. Select the record or records you don’t want to see and choose the Records | Filter | Filter Excluding Selection menu option to exclude those records that match your selection.

    • Filter By Form: Shows records based on the criteria you give in a blank table view. To filter by form choose Records | Filter | Filter By Form. The only difference between filtering by form and filtering by selection (above) is that in Filter By Form you choose the value to filter in a filter grid, instead of choosing a value from a datasheet. This grid looks like one table record that shows all the fields in your table. You can combine filter criteria to get a more interesting filter by selecting multiple values in the grid fields.

    • Filter For: A shortcut menu box that allows you to enter filter criteria. To use Filter For, right-click the value you want to filter in the datasheet view and select the Filter For menu option: type in the expression you want to filter in the box next to the menu option. There are many types of expressions you can use to filter records with Filter For (and also with Filter By Form). I’m not going to cover them here, but you can do a search In Access help for "filter for" and then select the "Example of Filter Criteria" from the results to see the various types of commands you may use with Filter For and Filter By Form.

    • Advanced Filter/Sort: Allows you to specify both a filter and a sort at the same time. The Advanced Filter/Sort lets you choose any and all of the Filter By Form options while simultaneously choosing sort options to apply to the table as well. Choose Records | Filter | Advanced Filter/Sort to use the Advanced Filter/Sort feature.

    When you’ve applied a filter to an Access table the status bar, at the bottom, shows the acronym FLTR, meaning that a filter has been applied to the data. This way you know you are not viewing the whole dataset. To save a filter, make sure you first apply a filter, and then select the Save as Query toolbar button.

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT