Access 2010 Basics
Access 2010 Basics
Basics
March 2011
Table of Contents
Files Used in this class:........................................................................... 2 Access 2010 Database Concepts ............................................................... 5 What is a database? .............................................................................. 5 What is a table? .................................................................................... 5 What is a record (row)? ........................................................................... 5 What is a field (column)? ......................................................................... 5 What is data?....................................................................................... 6 Data types .......................................................................................... 6 Field Properties .................................................................................... 7 A First Look at Access 2010 ..................................................................... 8 Opening Access 2010 ............................................................................ 8 Exploring the Access 2010 window ............................................................. 8 Minimizing the Ribbon ............................................................................ 9 Tabs and Ribbons ............................................................................... 10 Customizing Access 2010 ...................................................................... 11 Quick Access Toolbar........................................................................... 11 The File Tab & Access Options ............................................................... 11 Opening a Database & Security Issues ...................................................... 13 Opening a database............................................................................. 13 Security warnings ................................................................................ 13 Add a Trusted Location ......................................................................... 14 Navigating an existing database .............................................................. 15 Navigating through records within a table ................................................... 15 Add a New Record .............................................................................. 15 Closing a database .............................................................................. 16 Creating a new blank database ................................................................ 17 Saving a table .................................................................................... 17 Creating a Table & Setting Field Properties ................................................. 18 Closing a database .............................................................................. 22 Navigation Pane ................................................................................. 22 Primary Key ...................................................................................... 24
Input Mask Wizard............................................................................... 25 Input Mask Details ............................................................................... 26 Manipulating Records ........................................................................... 27 Using the Undo command ..................................................................... 27 Deleting data within a record .................................................................. 27 Deleting a single record ........................................................................ 27 Deleting multiple records ....................................................................... 28 Find a Record .................................................................................... 28 Editing data within a record .................................................................... 29 Find and Delete a Record ...................................................................... 29 Manipulating Tables .............................................................................. 30 Rename a Table ................................................................................. 30 Copy a table ...................................................................................... 30 Delete a table .................................................................................... 31 Sorting and Filtering ............................................................................. 32 Sorting by a single field ......................................................................... 32 Sorting by multiple fields ....................................................................... 33 Text Filters ........................................................................................ 34 Applying a single filter........................................................................... 34 Clearing a single filter ........................................................................... 35 Creating other types of filters .................................................................. 36
Creating Text Filters ............................................................................................................... 36 Date & Number Filters ............................................................................................................ 37
LeCroy Center
Page 4 of 44
What is a table?
Tables are used to store the data in a structured and organized format. As previously mentioned, tables are similar to those of Word and Excel, in that they contain rows (records) and columns (fields).
Page 5 of 44
new record. For example, the figure above has an email address for each row in the column headed Email.
What is data?
Data is the information entered into tables within the database. Databases are used in businesses and in education, often without people realizing they are using a database. Something as simple as entering contact details into the Contact or Address Book section of an email client, involves entering data into a database. Data entered will generally be alphabetical (names, addresses) or numerical (dates, currency), however Access is also able to store other forms of data, such as links to websites, documents created in other programs such as files & images. Data can be entered into the database manually, via the keyboard, imported from or linked to external sources or even collected through email or an internet form.
Data types
Data types define what type of data will be entered into each field (column) in a table. If you create a table by typing in the data in new fields, Access will determine the data type for you based on what you type. If you type a name, it sets the type for that field to Text. If you type a date either as 12/09/2010 or December 9, 2010 it will set the type to Date/Time. If you type a digit or digits it will set the type to Number. If you also type $ as in $49.95 or a specific number of decimal places 5.00 that will be included as the format for a numeric field. Although you can enter data without setting up the fields first, you should create the table and specify the data types for each field before entering data. You should also set defaults, limits, and use Input Masks as needed. Text holds up to 255 characters; can be numbers, letters, or symbols Memo holds over 255 characters; can be numbers, letters, or symbols Number numbers only Date/Time valid dates or times Currency numbers displayed as currency AutoNumber a number is automatically input; you cannot type in this field Yes/No only two answers: yes or no Hyperlink you can put in a hyperlink Attachment attach multiple files to one record including digital photos Look Up Wizard allows you to input a list of choices for a text field Calculated displays a value calculated from other data in the table [true or false] [on or off] OLE Object you can attach one document to the record
LeCroy Center
Page 6 of 44
Field Properties
Field Properties should be set in order to: format numbers and dates; to limit data entry to specific characters; to validate entries; to provide a mask for input; to require data in a specific field; and/or to set default data. You can see the Field Properties that have been set by viewing the table in Design View. Some of the Field Properties are only available for specific Data Types. Below is a brief description of some of the more popular Field Properties. Field Size allows the setting of the maximum number of characters that can be entered. Format allows you to specify a format or appearance of a date, time, or number. It has choices such as: short date, medium time, long date, currency, etc. Input Mask uses a particular format of the data entered. Such as a phone number (xxx) xxx-xxxx or social security number xxx-xx-xxxx. The Input Mask puts in the parenthesis, dashes, slashes while the user just types the data. Caption displays at the top of a column in a table. [It does not replace the field name.] Default Value is a value that is common, for example for a database with names and addresses, the State field could have a Default Value of: TX Validation Rule & Validation Text allow you to set limits, for example on a Number or a Date field you could specify the number be less than or greater than a specific number or that a Date be between specific dates. Required can either be Yes or No. Required Yes means that it will not allow the field to be empty. Indexed has three choices: No, Yes (Duplicates OK), and Yes (No Duplicates). Indexed Yes means that searches and sorts work faster. Text Format ( Memo fields)has two choices: Plain Text and Rich Text. (Rich Text allows the person entering data to use bold, italic, underline and a few other features.) Text Align is used to set the alignment of text in the field. Show Date Picker is available for Date fields. The Date Picker looks like a tiny calendar (small figure right). When you click the Date Picker, the current month calendar pops up (larger figure right).
Page 7 of 44
LeCroy Center
Page 8 of 44
Under the File tab in the top left corner is the Views group. There are also two tiny View buttons in the bottom right corner of the screen. At the bottom, near the center are the Record Navigation buttons. Use the navigation buttons to display the records in a table. In the 1 of 1 box the first number represents the current record and the second number is the total number of records.
All commands are organized into groups on the various Ribbons. Groups were designed to help identify tools quickly. A Dialog Box Launcher button, bottom right for the group (see figure on right) is available only on the Clipboard and Text Formatting groups on the Home tab ribbon. When clicked, the Dialog Box Launcher displays a dialog box for selecting additional features.
Page 9 of 44
External Data import & export records from/to Excel and various other file types
Table Tools Fields views, insert, delete, or rename fields; set properties & data formatting Table Tools Table (not shown) is for working with macros and programming steps to run
LeCroy Center
Page 10 of 44
Click the File tab, then Options. On the General screen, you may want to change the Default file format (see the figure). If that is the only change click OK at the bottom of the Options window. Still on the Options screen, click Current Database on the left. Locate Document Window Options (across from Quick Access Toolbar). Click Tabbed Documents to select it. This will enable having tabs across An example of tabbed document windows the top of open files within Access, as shown in the figure on the right. Click Object Designers, the fourth item in the Options menu. If you would like to change the Default text field size, select 255 and type the number you want. 50 is suggested unless you think that is too low. Click OK if finished with Options. You can also make changes to the Quick Access Toolbar, select the Quick Access Toolbar in the menu on the left. To add buttons to your toolbar, select a command in the list on the left, click the Add button and the command is added to the Toolbar on the right side of the screen. Add as many commands as desired. Click OK to keep the changes.
LeCroy Center
Page 12 of 44
Security warnings
Similar to other Microsoft Office applications, Access 2010 warns users of potential security threats when they arise and relate to macros within the application. Macros contain code written to perform a task within the application and are used widely in Excel, Word as well as Access. Because macros use code designed to allow advanced users the opportunity to create their own functions to enhance the functionality of a database, others can also write malicious code intended to have the opposite effect. For this reason, Microsoft Office applications prevent macros from running and displays a warning instead, which is outlined in the figure above. Click the link Click for more details for additional information. Click Enable Content to temporarily enable the file (this time only). Click for more details, brings up the screen shown on the right.
Page 13 of 44 Software Training and Support
You can also click Enable Content (as a temporary fix). Click Trust Center Settings to enable the contents of the file permanently. If you trust the source of this database file and the content, you can select Enable content, to allow the macro to run, then click OK. NOTE: Selecting Enable content is a temporary enabling of macros and warnings will be displayed again the next time this database is opened.
Click the Enable Trust Center logging checkbox (to turn it on).
LeCroy Center
Page 14 of 44
Click the Browse button, locate and click on the folder that you wish to add to the Trusted Locations. Click Subfolders of this location are also trusted. Click OK The new location should be in the list of Trusted Locations. Next time you open the database, you should not receive the security warning.
Page 15 of 44
press Tab;
For City press Ctrl press Tab twice to accept the State and in the Zip Code field press Ctrl then press Tab; Type the Phone Number shown just type the digits 214 1234567 and the Input Mask (already set up) will put in the parenthesis, space, and dash in the correct places.
Closing a database
Click the File tab to display the menu. Select the Close Database command. (This will close Sample2011 the open database.) The database closes and returns to the Access 2010 Available Templates screen. The database name is listed on the left of the screen with the Recent Databases.
LeCroy Center
Page 16 of 44
Saving a table
Before adding information to an Access database, the fields should be added to a table. The fields should be named, given the correct Data Type and formatted appropriately. Field Properties should be selected as needed. If necessary you can put validations in the fields as well as defaults. Fields are used to organize data into specific fields or columns, for example a FirstName field would store the first name for every individual record entered, as would the LastName, BirthDate, and other fields, etc. Click the Save button in the Quick Access Toolbar. The Save As dialog box is displayed. Type the name Faculty. Click the OK button. [Each object: Form, Query, Report, and Table has its own name]
Page 17 of 44
The first field is automatically created and is called ID and it is an AutoNumber Data Type. It is the Primary Key. Setting the field as the Primary Key causes entries in the field to be unique. Change the Field Name to: Faculty ID Type the Field Name (1): LastName press the down-arrow key to go to the next field. The third field should be FirstName, press the down arrow. (It will automatically make the Data Type Text.) Text is the default Data Type. [If you want a different Data Type, click the drop down arrow (2) in the figure above.] Leave the Data Type as Text for both name fields. The area at the bottom of the screen is titled Field Properties (3). Set the Field Size to 30 for both name fields (FirstName & LastName); these fields will allow a maximum of 30 characters.
LeCroy Center Page 18 of 44
Create the following fields, give Field Properties where specified in []. You have completed the first three. Faculty ID LastName [Field Size, 30] FirstName [Field Size, 30] NOTE: Reducing the character length of a text field after data has been entered can result in loss of data in a field that had more text than the new limit. Birthdate Date/Time [Format, Short Date] [Required, Yes] (Required will not allow blank fields) Graduate Hrs Number [Validation Rule, >=18] [Validation Text, Must be equal to or greater than 18] (this Validation Rule says it must be 18 or more) PhD Campus Comments Yes/No Text Memo Text AutoNumber Text
[Text Format, Rich Text] (Turning on Rich Text means you can use bold, italic & underline among other features) Phone Text Insert two new rows below FirstName. Put the mouse on the left edge of Birthdate, click once and drag down to select both (1) Birthdate and Graduate Hrs (see figure right). Click (2) Insert Rows in the Tools group.
Page 19 of 44
Add the following two fields (on the new blank rows) below FirstName: County Text [Default value, Dallas] State Text [Default Value, TX] Save the Faculty table again. Move the Comments field to the bottom, below Phone: click the selection box on the far left to select it, then drag it to the bottom of the fields and let go] Click the Datasheet View button in the Views group on the left edge of the Table Tools Design tab to view the new (empty) table.
Input one record in the table (make up information; try leaving the Birthdate field blank. Also try entering a number less than 18 in the Graduate Hrs field), use the Tab key to move across from one field to another. Instead of having to enter the name of the Campus, change the Data Type for Campus to Lookup Wizard. The Lookup Wizard will begin. On the first screen of the Lookup Wizard, select I will type in the values that I want. Click Next. On the second screen (shown right) type the names of the seven campuses, one per line: Brookhaven, Cedar Valley, Eastfield, El Centro, Mountain View, Northlake, Richland. (Press the down arrow to go down one line for each campus.) Click Next.
LeCroy Center
Page 20 of 44
The third and final screen has two options. See the figure (right). Type Campus for the label. Select either Limit To List OR Allow Multiple Values. Click Finish when complete. NOTE: If you check Limit To List then it will display a dropdown list, but it will not allow you to type an entry not in the list. If you check Allow Multiple Values then it will display the list with a checkbox in front of each value. You can check the box for more than one value. (For example if someone worked part time on two campuses.) In Design View; add a field at the bottom (below Comments) called Documentation and select Attachment as the data type. Save the Table again. (There are twelve fields in the table.) In Datasheet View, the Documentation column displays a paper clip symbol at the top instead of the field name. In the figure on the right, the top paperclip is in place of a field name. The paperclip (2) means there are 2 attachments in the first record. (0) means there are no attachments in the second record. In Design View, look at the Documentation Field Properties. For the Caption, type Resume & Other Documents. The Caption displays at the top of the field (column). Save the Faculty Table. The Attachment data type is useful for attaching images, resumes, descriptions and other file types, etc. To attach documents and images, either double click on the cell containing the paper clip image, or with the cell active, right-click on the Attachment field and select Manage Attachments from the pop-up menu. In the Manage Attachments box, shown on the right, all the attachments for a specific field are listed. Click Add to attach a file. Click Remove to remove a file already attached. Use Open to see the contents of an attached file.
Page 21 of 44
Click OK when finished with the Manage Attachments window. Save and Close the table. NOTE: When viewing the Attachment field of a record (in a form), click once on an attachment and the scroll buttons shown here, are visible.
Click Forward or Back to scroll through the attachments. Click the paperclip to bring up the Manage Attachments dialog box. In a form, attached photos are displayed, other documents are shown as an icon.
Closing a database
Click the File Tab to display the menu. Select the Close Database command. Save your changes. The database closes and it returns to the Blank Database screen. The database named Faculty is in the Recent list.
Navigation Pane
The Navigation Pane is located on the left side of the screen and displays all objects contained within the database, including all tables, forms, queries and reports. Open the database Sample2011 The Navigation Pane can be minimized by clicking on the (left pointing) arrows button, top right of the pane. To restore the Pane to normal view, click the right pointing arrows button at the top right of the pane. Object categories can be minimized / maximized using the upward/downward pointing arrow buttons to the right of the object type.
LeCroy Center
Page 22 of 44
In the figure, All Access Objects are displayed: Tables, Queries, Forms, and/or Reports. Queries are also shown in the figure. It may not be evident which Table goes with each Query, because Tables and Queries can be named anything. A preferable way to view the Objects is by All Tables set to Tables and Related Views. This view shows the Table and its Objects together. To select the way you would like to view the objects, click the (1) Menu button which is the down pointing arrow in the top right corner of the Navigation Pane (see figure on right). Select Tables then Tables and Related Views. In this way tables will be listed with all their individual Forms, Queries, and Reports. [Each object type has its own icon in front of the name. See the figure lower right.] Experiment with the views. Leave it displayed by All Tables and Tables and Related views. (See the figure on the right.) The objects are shown listed with the Table. In the example, the Class Schedule 2009-10 group shows one Table and four related objects. The related objects include two Queries, one Form, and one Report. This makes it easy to know which table it is pulling information from.
Page 23 of 44
Primary Key
A Primary Key is used as a unique identifier for each record in a table and is essential when working with relational tables. To be effective, a Primary Key cannot have duplicate entries and must be set on a field with a unique identifier. When creating a new table, Access automatically adds the ID field with an AutoNumber data type. By default the ID field is also the Primary Key. Examples of other fields suitable to be set as a Primary Key are: passport, social security and drivers license numbers, military identification, tax, workplace or personal identification numbers, unique to each individual. The Primary Key will not allow duplicate entries in the Primary Key field for the table. NOTE: A Primary Key field can never be empty. Open the Sample2011 database. Open the Class Schedule table. Switch to the Design View, by clicking on the View button. The Primary Key symbol identifies the Class Number field as being the Primary Key. NOTE: The Primary Key button is in the Tools group on the ribbon. To use another field as the primary key, select the field (Course Name) and then click the Primary Key button on the ribbon. The Primary Key symbol is now displayed beside the Course Name field. NOTE: The Course Name field is NOT a suitable data type to become a primary key, as data within this field is unlikely to be unique. Reset the Primary Key to the Class Number, before continuing. Close the Sample2011 database. Open the Faculty database again.
LeCroy Center
Page 24 of 44
Page 25 of 44
The last screen of the Input Mask Wizard asks if you wish to store the data with or without the symbols in the Input Mask. In other words, store a phone number like this: (972) 495-1234 or 9724951234 ? (with or without the symbols, as ten digits or fourteen characters?) There are two questions you should ask yourself If I export this to a text file will it matter whether the parenthesis, space, & dash are there or not? And/or Does four more characters per record make that much difference in storage space? Select the way you want it to store, then click the Finish button. NOTE: The Input Mask has additional codes that can be used to create an Input Mask without using the Input Mask Wizard. Click the Datasheet View button to switch to Datasheet View. When prompted, click the Yes button to save the changes. Using the mouse pointer, select the next blank cell at the bottom of the Phone column. Notice the new Input Mask appears. Type in a phone number. NOTE: If at any stage incomplete data has been entered into the field using an input mask, you will not be able to move out of the field or select another function until the data is either removed or completed.
The first section is mandatory. The sample consists of characters with special meaning such as 9 means it is optional you can leave it blank or type a digit, but it will only accept digits. The character 0 means it is mandatory to type a digit. The second section will either be a 1(to store only what is typed) or a 0 (to store all characters such as parenthesis or dash along with the typed data. The # at the end indicates the chosen placeholder. Anything in quotes or preceded by a backslash \ will appear as shown. The ! at the beginning means if there are optional characters, it will fill from right to left.
LeCroy Center
Page 26 of 44
Page 27 of 44
Find a Record
In a small table it is easy to find a specific record. However, if your table has hundreds or thousands of records you need help from Access. Open the Sample2011 database and Open the Class Schedule 2009-10 table. Click in the field you will be searching, for example click in Course Name if you will be searching for a class with a specific name. Click in Course Name. Click the Find button, it is in the Find group in the center of the Home ribbon. A dialog box like the one shown in the figure on the right is displayed. Find What: (type the text you want to find) Look In: has Current Field (which means it is important to click IN the field that you are searching first). The other choice is Current Document, in a Table that means all fields are searched. Match: chose from: Any Part of Field, Whole Field, or Start of Field; any part of field means what you are searching for could be anywhere in the field, whole field means it can only have what youre searching for; and start of field means it will only be searching the beginning of the field for the text you typed. Search: chose from: All, Down, Up; All will search all records no matter where you start the search, Down will start on the current record and search Down (stopping on the last record), Up will search from the current record to the top and then stop searching. Match Case if checked it will only search for the exact case that you typed in the Find What: box. If it is unchecked it does not look at the case only the text typed.
LeCroy Center Page 28 of 44
Search Fields As Formatted if checked will only look for data entered in the same format. For example, if a Time field is formatted like this: 4:30:00 PM it will NOT find 4:30 PM if Search Fields As Formatted is checked Find What: Look In: Match: Search: Introduction Current field Any Part of Field All
Click the Find Next button on the right. When it has searched all the records, it will display the message shown on the right. Click OK and it will end the Find. Close the Class Schedule table.
Page 29 of 44
Copy a table
To copy an object, right-click on the name in the Navigation Pane, in the popup menu, click Copy. Right-click in the Navigation Pane, click Paste In the dialog box that pops up, type the name for the copy Three choices (for what can be copied) are given. (see the figure below) Copy the Faculty 2011 table. Name the copy: Copy of Faculty 2011 Paste Options are: Structure Only copies fields, including defaults, validations, input masks, etc. Structure and Data copies the structure and the information typed in the table. Append Data to Existing Table will add the copied data to another, existing table. Select Structure Only Click OK Open the copy of the table to see what is in it.
LeCroy Center
Page 30 of 44
Delete a table
To delete an object, i.e. a table from a database, that object must be closed so first close any open tables In the Navigation Pane, right-click on the name of the table. From the popup menu select the Delete command (see figure on right). Click Yes to confirm deletion on the warning message. The table is deleted from the database. Close the Copy of Faculty 2011 table. Delete the Copy of Faculty 2011 table Close the Faculty database.
Page 31 of 44
Within the Home tab, in the Sort & Filter group, click on the AZ (Ascending) button (top left in group) The table is now sorted in alphabetical order by Last Name. However, students with the same last name should also be sorted by their First Name. NOTE: A sort will remain active until removed; even when a table is closed and reopened (if the table was saved prior to closing). There are some students with the same last name, their first names should be sorted where the last name is the same. To remove a sort, click the Remove Sort button in the Sort & Filter group (bottom left in group). The table returns to the default (original) sort order.
LeCroy Center
Page 32 of 44
A multi-field sort is needed to organize the Last Name into alphabetical order first, and then sort the First Name field so that names within that field are alphabetical according to each different Last Name. Move the Last Name field (column) in front of the First Name field. Select the Last Name column, release the mouse. Point to the top of the Last Name column, hold down the mouse and drag in front of First Name. Release the mouse button when you see the black line in front of First Name column (as seen in the figure above). Place the pointer over the First Name field name (at the top of the column) without clicking. When the pointer changes to the down arrow shape (circled in figure on right), click and drag (left) across the Last Name field in one movement, to highlight both fields. Release the mouse button to complete this task. The two columns will be highlighted. Click the Ascending button in the Sort & Filter group. Click anywhere in the table to clear the highlighting from the two fields. If there are two or more records with the same last name, the First names are sorted within the Last Name field. [Look at your table, there are two each of Johnsons, Perrys, and Smiths, they should all be sorted by first name within the same last name.] Notice the tiny arrows (circled in the figure). These indicate which columns have been sorted; arrows pointing up mean Ascending (arrows pointing down are Descending).
Page 33 of 44 Software Training and Support
To put the table back in the order the records were in originally, click the Remove Sort button in the Sort & Filter group. NOTE: When sorting text fields that contain null or zero-length strings, the null values are listed first (ascending order A-Z) and last (descending order Z-A).
Text Filters
Text Filters provide a means to find one or more specific records in a table or form or print specific records in a report, table, or query. By using criteria in a filter, you effectively display only those records matching the criteria. Records not matching the criteria disappear from view, hence the term filter. For example, if you only want to display records that fall between the first day of a month and the last day of a month, you can apply a filter, specifying the oldest date and the newest date - only records matching the criteria remain visible in the table. Filters remain in place until they are removed or until the object is closed. More than one filter may be active at one time, although only one filter per field is possible. Setting a new filter on a field will effectively remove the previous filter for that field before applying the new filter.
LeCroy Center
Page 34 of 44
In the lower section of the popup menu, you will notice a group of check boxes. These check boxes represent all the available (unique) subjects entered into the Subject field (or whatever field you clicked in). At the top of the check box group is one labeled (Select All). Click the (Select All) check box to un-check all the boxes. To locate all records for those with the subject Email, click the Email check box. Click the OK button. Six records are displayed with Email in the Subject field. A button is displayed to the right of the field name Subject or any field which has a filter applied. Click the button and select a different Subject to filter. Within the ribbon Sort & Filter group, the Toggle Filter button is now active. Toggle Filter effectively turns the filter on and off, switching between the filtered view and normal view (unfiltered). The Filtered button, previously grayed out is now active in the record navigation bar at the bottom of the table (see figure on right). The Filtered button works in exactly the same way as the Toggle Filter button in the Sort & Filter group in the ribbon. Click on the Filtered button once. The table is temporarily unfiltered and ALL records are visible. Click the Unfiltered button (or the Toggle Filter button) to revert back to the filtered view.
Page 35 of 44
NOTE: Text Filters are custom filters that allow you to specify criteria without having to use operators such as <, >, =, etc. The Custom Filter dialog box is displayed. Type MS into the Subject begins with box. Click the OK button. Only records matching the criteria, begins with MS in the Subject field remain displayed. [76 of the 110 records match this criteria]
LeCroy Center
Page 36 of 44
Date & Number Filters Click within the # Sessions field column. Click the (1) down arrow button to the right of the # Sessions field name. When the Filter popup menu is displayed, click (2) Number Filters command. From the sub menu displayed, click (3) Greater Than. Type 5 in the box. Click on the OK button. Only records matching a Subject beginning with MS and # Sessions greater than or equal to 5 remain displayed. Select and highlight the Beginning Date field. Click on the down arrow button to the right of the (1) Beginning Date field name. When the filter dialog box is displayed, select the (2) Date Filters command. From the submenu displayed, click (3) Between ... The Custom Filter dialog box is displayed. Into the Oldest section, type in 1/1/2010. Into the Newest section type in 3/31/2010. Click on the OK button. Now the number of records matching the three filters is reduced even further. (Only 23 records match the three filters: Subject, # Sessions, and Beginning Date.)
Page 37 of 44
It is possible to clear each filter, one at a time, by clicking the filter button at the top of the column and clicking Clear filter from <field>. To clear all filters at once, click (1) Advanced button on the Home ribbon, in the Sort & Filter group. From the list, select the (2) Clear All Filters option. The filters will be removed and all records will once again be displayed.
Multi-column sorting: In the Sort & Filter group, click (1) Advanced. Select (2) Advanced Filter/Sort from the pop-up menu. The Advanced Filter window opens. Since sorting needs to be set up so that the columns to be sorted should be in order of importance from left to right, the columns need to be added to the bottom grid in that order.
LeCroy Center
Page 38 of 44
To place a field in the grid you can (1) double click it in the field list OR (2) click the dropdown arrow in the column grid and click once on the field name in the drop-down list. Put the following fields in the grid in this order: Date, Subject, Campus Location, and StartTime. Under each field, on the Sort: line select (3) Ascending from the drop-down list. Select Advanced in the Sort & Filter group. Select Apply Filter/Sort. Look at the 8/13/2009 Start Times, they are not in order. Because StartTime is the last field to be sorted, it is not working correctly. The StartTime field should be between Date and Subject. Click Advanced. Select Advanced Filter/Sort. The grid is re-displayed. Select the StartTime field by clicking at the top of the column with the black down arrow. Release the mouse button, move the mouse to the top of the selected column, when you see a small white arrow, hold down the mouse button and drag the column to the left. Release the mouse button when the vertical black line is between Date and Subject. Click Advanced. Select Apply Filter/Sort. The Dates with two Start Times are in order by Start Time now. [Look at 8/13, 9/16, and 10/1 to verify.] Select Advanced Filter/Sort to display the grid.
Page 39 of 44
Adding Criteria to the Advanced Filter/Sort: Click on the Criteria line of the Date column. Type this: BETWEEN 12/15/2009 AND 3/15/2010 (see the figure on the right) Click Advanced. Select Apply Filter/Sort. Look at the table, instead of 110 records, you see 33 Filtered records
Click Advanced. Select Advanced Filter/Sort. Click on the Criteria line of the Subject column. Type this: MS* Click Advanced. (ms* works the same) Select Apply Filter/Sort.
Look over the results of the additional Filter. NOTE: The asterisk * is used as a wildcard. By putting MS* that means we are searching for records that start with MS and may or may not have text after the MS. Click Advanced. Select Advanced Filter/Sort. Click on the Criteria line of the Campus Location column. Type this: CVC OR EFC Click Advanced. Select Apply Filter/Sort. Look over the results of the additional Filter. All three filters are shown below.
LeCroy Center
Page 40 of 44
Above is the filtered Class Schedule Table. Twelve records met all the criteria. NOTE: Unaffected fields (columns) in the above figure are hidden. To Hide/Unhide a field, right-click the selected column(s) in the table, select Hide Field(s) (or Unhide Fields). If you would like to use this same filter again in the future, you must save it as a query. First display the grid, click Advanced then click Advanced Filter/Sort. In the grid, click Advanced, Save As Query in the pop-up menu. The Save As Query box pops up, asking for the Query Name. Type a meaningful name that will help you remember what the filters do. Click OK. To use the saved Query in the future, just double click to open it and it will display the current records that meet the criteria. If new records have been added to the table, they will show in the Query if they meet all of the criteria. Click Advanced, Close (to leave Advanced Filter/Sort grid). To clear the filter/sort, select Advanced then Clear All Filters. Close the table. Close all tables and other objects.
Page 41 of 44
You can change the filename and/or the location of the backup. Click Save Close the database Close Access.
LeCroy Center
Page 42 of 44
www.dcccd.edu
Employees > Training and Development > Software Training and Support
Dallas TeleCollege at the R. Jan LeCroy Center for Educational Telecommunications District Software Training & Support 9596 Walnut St. Dallas, TX 75243 STAFF Helpdesk Phone: 972-669-6477 STUDENT Helpdesk Phone: 972-669-6402 E-mail: [email protected] Web Site: http://helpdesk.dcccd.edu Training Web Site: http://employeetraining.dcccd.edu