on line viewing tip #1: while viewing this presentation in your browser, select browse, full screen....

197
n Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click any where on the screen and select Screen / Pause. Click to Start Click For tip #2

Upload: austen-fields

Post on 27-Dec-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

On Line Viewing Tip #1:While viewing this presentation in your browser, select Browse, Full Screen.

Then, when you want to pause the show, Right Click any where on the screen and select Screen / Pause.

Click to Start

Click For tip #2

Page 2: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

On Line Viewing Tip #2:

If you desire, you can also download each presentation for off line viewing in PowerPoint and / or printing.

Click to Start

Simply right click on the lecture link and select “Save Target As ...” from the resulting Menu.

Click For tip #1

Page 3: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

SESSION 5.1 & 8.1

In this session we will be exploring Pattern Match QueriesList-Of-Values Queries, Non-Matching Values in QueriesBoth the “And” and the “OR” Operators Parameter Queries (or “Prompt Queries”) CrossTab Queries TopValue Queries and Action Queries

Microsoft Access 2002 Class #5

Page 4: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The The MajorMajor Steps of a Steps of a MicroSoft Access MicroSoft Access

DatabaseDatabase TablesTables QueriesQueries FormsForms MacrosMacros ReportsReports PagesPages ModulesModules

© Copyright 2001 Innovative Systems Management

Our Road MapWe are here!We are here!

Page 5: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Remember, a query is a question you ask about data stored in a database.

Page 6: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Pattern Match Queries, List-Of-Values Queries, Non-Matching Values in Queries, Both the “And” and the “OR” Operators and Parameter Queries (or “Prompt Queries”) are all simply normal select queries that use criteria.

The Criteria RowThe Criteria Row

Page 7: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Last session we looked at defining record selection by using criteria and creating calculated fields in Select queries.

The Criteria RowThe Criteria Row

Page 8: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In this session we will look at specific criteria in Select queries.

The Criteria RowThe Criteria Row

Page 9: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Let’s take a quick look at the “Like”, “In”, “Not”, & the “And / Or” comparison operators that we will be using in our class exercise for this session.

The “Like” comparison operator (used in pattern matches) selects records by matching field values to a specific pattern that includes one or more wildcard characters - asterisk (*), question mark (?), and the number symbol (#).

Page 10: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To show only those records with an area code of 313 you would enter this in the Phone Criteria Row

Like “313*”

Page 11: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The asterisk represents any string of characters, the question mark represents any single character, and the number symbol represents any single digit.

Using a pattern match is similar to using an exact match, except that a pattern match includes wildcard characters.

Page 12: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A list-of-values match selects records whose value for the selected field matches one of two or more simple condition values. You could accomplish this by including several “Or” conditions in the design grid, but Access also provides the “In” comparison operator that works as a shorthand.

Page 13: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The “In” comparison operator allows you to define a condition with two or more values.

If a record’s field value matches at least one value from the list of values, Access selects that record for inclusion in the query results.

Page 14: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To show all records that contain CustomerNum 123, 135 and 202 you would enter this in the CustomerNum Criteria row

Page 15: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A non-matching value selects records whose value for the selected field does not match the simple condition value.

You create the selection criterion using the “Not” logical operator.

Page 16: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To omit all states that begin with the letter M you would enter this in the State Criteria row

Page 17: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

You could also type just Not M* and Access would insert the Like and Quotes for you.

Page 18: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Let’s talk about something called compound conditions for a moment.

Elsa just came in and asked to see a list of all employers in Vermont and New Hampshire.

Notice the word “and” in Elsa’s request.

Page 19: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

What would happen if we typed “VT” And “NH” in the State/Prov field’s Criteria Row?

Page 20: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The result would look something like this, not finding anything. That’s because we have asked Access to show us all records that contain both VT and NH in the same field.

Page 21: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To answer Elsa’s question we would have to enter

Page 22: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This criteria would return something like

Page 23: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

You have the option of entering this criteria in two ways

Page 24: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Using the second method as shown below

Would return only records in Vermont that start with “802” in the Phone field and every record in New Hampshire.

Page 25: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Using the second method as shown below

Would return only records in Vermont that start with “802” in the Phone field and only records in New Hampshire that start with “603” in the Phone field.

Page 26: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Hmm??

Lately it seems as though the questions are getting more and more intense!

Page 27: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Elsa especially is beginning to realize that many unsolved mysteries can be solved with this program by using queries.

What if ?

Page 28: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This has been causing Elsa’s Staff aconsiderable amountof concern.

Two things have beenhappening. First, more and more time has been spent creating queries.

Page 29: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Secondly, The number of queries is growingand it’s becomingmore and more difficult to keeptrack of whichquery is which.

There is an answer to this dilemma!

Page 30: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The wizards at Microsoft have come up with a very simple solution!

Page 31: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The solution is a parameter query!

Page 32: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A parameterquery is aquery thatprompts youfor criteriawhen the query is viewed or run. When Access runs the query, it will display a dialog box and prompt you to enter the criteria desired.

Page 33: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a parameter query, simply enter the text that you want as your prompt in square brackets in the criteria row for the field that you want to set the criteria for.

Page 34: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Can I get summaries ?

Elsa, Matt and Zack are now interested in how many employers are in their database by State.

Zack is asking if summary data can be acquired.

Page 35: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Is the Sunin the Sky? The answer is

“YES!”.“YES!”.

The solution is “CrossTab “CrossTab

Queries”!Queries”!

Page 36: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

and displays the results in a spreadsheet like format.

A Crosstab query performs aggregate (total) function

calculations on the values of one database field,

Page 37: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Aggregate functions perform arithmetic operations on the records in a database.Figure 8-1 Aggregate Functions used in crosstab queries

Function Definition

Avg Average of the field valuesCount Number of non-null field values

First First field value

Last Last field value

Min Lowest field value

Max Highest field value

StDev Standard Deviation of the field values

Sum Total of the field values

Var Variance of the field values

Page AC 8.04

Page 38: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the selection list provided for the aggregate functions, you will find one other option named “WhereWhere”.

If you select this option, it will automatically remove the check from the show box. This option is used if you would like to include a field in your crosstab query to be used for criteria, but you do not wish to have it shown in the query results.

Page 39: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

through the steps for creating crosstab queries.

The quickest way to create a crosstab query is to use the Crosstab Query Wizard, which guides you

Page 40: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Since we are using information from two tables, the first step is to create a select query with both tables.

We are interested in seeing how many of each position type is on record in our database by state for the USA only.

Page 41: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The select query that we will use is called “Positions by State” and is shown in design view above.

Page 42: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Now for our Crosstab Query

Now for our Crosstab Query

Page 43: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 44: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 45: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 46: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 47: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 48: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 49: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 50: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 51: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To view the results of the query, select View from the Menu Bar and then Datasheet View..

Page 52: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 53: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A Crosstab query can also display one additional aggregate function value that summarizes each row’s set of values.

A Crosstab query can also display one additional aggregate function value that summarizes each row’s set of values.

Page 54: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Crosstab QueriesCrosstab Queries

Reference WindowUsing the Crosstab Query Wizard

• In the database window click queries inthe objects bar to display the querieslist, then click the new button.

• Click Crosstab Query Wizard and then click the OK button

• Complete the Wizard Dialog boxes to select the table or query on which to base the crosstab, select the row heading field or fields, select the column heading field, (one only), select the calculation field (one only) and the aggregate function.

Page AC 8.06

RW RW

Page 55: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

There are 3 other types of select queries that we need to take a quick look at.

Find DuplicatesFind UnmatchedTop Values

Page 56: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Finding duplicate records in very large databases can be a very distasteful and tedious task

Page 57: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A find duplicates query is a select query that locates duplicate records in a table or query.

Page 58: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

You can create this type of query using the Find Duplicates Wizard!

Page 59: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Find Duplicate QueriesFind Duplicate Queries

Reference WindowUsing the Find Duplicates Query Wizard

• In the database window click queries inthe objects bar to display the querieslist, then click the new button.

• Click Find Duplicates Query Wizard and then click the OK button

• Complete the Wizard Dialog boxes to select the table or query on which to base the query, select the field or fields that will contain the duplicate values, select the additional fields to include in the query results, name the query and then click OK.

Page AC 8.09

RW RW

Page 60: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Finding unmatched records in very large databases can also be a very tedious task

Page 61: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A find unmatched query is a select query that locates unmatched records in a related table.

Page 62: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

For example, if you can not establish referential integrity betweenthe Customer Tableand the Pet Table,you might have acustomer # in the Pettable that does not exist inthe customer table.

Page 63: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In this case, a find unmatched query would be just the tool to use to find the invalid customer # in the Pet table.

Page 64: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The following demonstrates how to create a “Find unmatched” query.

Pay close attention to the following. As a matter of fact, it might even be a good idea to take some notes as I have a very strong feeling that you might be needing this information in the very near future.

Page 65: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a Find Unmatched Query:

Start from the database window and click on the Queries Objects button.

Page 66: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a Find Unmatched Query:

Click the New Button

Page 67: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a Find Unmatched Query:

From the New Query window, select the “Find Unmatched Query Wizard”.

Page 68: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a Find Unmatched Query:

Then click the “OK” button.

Page 69: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step #1 of the wizard will ask you “Which table or query contains records you want in the query results?”

Page 70: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

If we have a pet in the Pets table that has an invalid customer number, we would want to look in the Pets table for that record. We therefore would select the Pets table in this window.

Page 71: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step #2 of the wizard will ask you “Which table or query contains the related records?”

Page 72: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In our case of the pet with an invalid customer number, the Customer table would be the related table that should contain the customer number if it existed. We would therefore select the Customer table here.

Page 73: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step #3 of the wizard will ask you “What piece of information is in both tables?”In other words, What is the common field?

Page 74: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Our common field for the Customer and Pets tables is the “Customer Number” field.

Page 75: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

We therefore would click on the Customer Number field in the “Fields in “Pets” window, click on the Customer Number field in the “Fields in “Customer” window, and . . .

Page 76: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Then click on the <=> button in the middle.

Page 77: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

When we do this, the matching fields will show up in the “Matching fields:” area below.

Page 78: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step #4 of the wizard will ask you “What fields do you want to see in the query results. These are fields that will help you identify the problem pet record.

Page 79: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Since we are looking for a Pet ID with a bad Customer Number, we would at least want to select the Pet ID and the Customer Number. Any other fields are just for our benefit.

Page 80: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To move the Pet ID field above from the “Available fields” window to the “Selected fields” window, first left click on the Pet ID on the left, the click on the > button in the center.

Page 81: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This will move the Pet ID from the left window (Available fields) to the right window (Selected fields). Follow this same procedure for the Customer Number field and any other fields that you wish to have in your new query.

Page 82: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step #5 is the final step and will ask if you wish to View the results, or Modify the query that you are about to create before viewing.

Page 83: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In this example, let’s keep the default of “View the results.” and click the “Finish” button at the bottom of the screen.

Page 84: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

If we did everything correctly, we would see our new query in the datasheet view showing us the Pet records in the Pets table that do not have a matching Customer Number in the Customer table. We can then either delete the pet record from the Pets table, Correct the invalid Customer Number in the Pets Table or create the Customer record in the Customer table.

Page 85: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Once we have found and corrected our problem record in the Pets table we could then establish a relationship with Referential Integrity Enforced if we needed to.

Page 86: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Find UnMatched QueriesFind UnMatched Queries

Reference WindowUsing the Find UnMatched Query Wizard

• In the database window click queries inthe objects bar to display the querieslist, then click the new button.

• Click Find UnMatched Query Wizard and then click the OK button

• Complete the Wizard Dialog boxes to select the table or query on which to base the query, select the field or fields that will contain the related records, specify the common fields, select the additional fields to include in the query results, name the query and then click OK.

Page AC 8.11

RW RW

Page 87: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The last select query that we will explore is called a

Top Values Query

Page 88: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Whenever you have a query that displays a large group of records, you can limit the number to a more manageable size by showing just the first 10 records for example.

Page 89: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Top Values property for a query lets you limit the number of records in the query results. For the Top Values property, you enter either an integer (such as 10, to show the first 10 records) or a percent (such as 50%, to show the first half.)

Page 90: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Top Values Query Button can be found on the Query Design Window’s Tool Bar as shown below:

Page 91: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

You can also accomplish this as well as selecting other options by viewing the query properties.

You can also accomplish this as well as selecting other options by viewing the query properties.

Page 92: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This is done by right clicking in the gray area at the top of the Query Window . . .

This is done by right clicking in the gray area at the top of the Query Window . . .

Page 93: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

and then select Properties at the bottom of the short cut menu that appears.

and then select Properties at the bottom of the short cut menu that appears.

Page 94: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 95: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Top Value QueriesTop Value Queries

Reference WindowCreating a Top Values Query

• Create a select query with the necessary fields and selection criteria.

• Enter the number of records (or percentage of records) you want selected in the Top Values Text Box found on the Query Design Tool Bar.

• Click the View Datasheet button on the Query Design Tool Bar to view the results.

Page AC 8.13

RW RW

Page 96: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

SESSION 8.2

Action Queries - In this session we will explore the 4 types of action queries.

Page 97: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Finally, we are going to look at

Page 98: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Queries can do more than display answers to the questions you ask; they can also perform actions on the data in your database.

Page 99: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Once you understand the basics of Select Queries, Action Queries are very simple, yet extremely

Page 100: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Action queries, combined with macros, can literally make your day! With Action queries and macros you can automate many of the tedious actions that once took hours or even days to complete.

Page 101: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

An Action query is a query that adds, changes, or deletes multiple table records at one time.

Page 102: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Before you can create an Action Query however, you must first create a Select Query, Testing the query by “Viewing” the datasheet.

Page 103: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Once you are satisfied that the query is going to act on only the records that you have selected, then you can convert the query to an Action Query.

Page 104: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This is done from the Select Query’s design window. All that you need to do is select the appropriate query type from the query type button on the tool bar.

Page 105: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

By clicking on the selection arrow to the right of the button, you will see a list of query types that can be used

Page 106: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Action Queries come in four flavors.

Make Table QueryAppend QueryDelete QueryUpdate (modify) Query

Page 107: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A “Make Table” query creates a new table from one or more existing tables.

Page 108: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The new table can be an exact copy of the records in an existing table.

Page 109: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The new table can be a subset of the fields and records of an existing table.

Page 110: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The new table can be a combination of the fields and records from two or more tables.

Page 111: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create a Make Table query, first, right click on an existing query in the Database window.

To create a Make Table query, first, right click on an existing query in the Database window.

Page 112: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Then select Design View from the resulting Short Cut Menu.

Then select Design View from the resulting Short Cut Menu.

Page 113: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Access will then open the query in the design view, and your are ready to begin converting it to a Make Table Query.

Page 114: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step two is to click on the Queries type button on the tool bar and then select Make-Table Query.

Step two is to click on the Queries type button on the tool bar and then select Make-Table Query.

Page 115: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Alternatively you can click on the Query Option from the Menu Bar and then select Make-Table Query. The choice is yours, either way is the same.

Alternatively you can click on the Query Option from the Menu Bar and then select Make-Table Query. The choice is yours, either way is the same.

Page 116: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Special Customers

You will then be prompted for the name of the new table that you are making. Enter the name an then click on the OK button.

You will then be prompted for the name of the new table that you are making. Enter the name an then click on the OK button.

Page 117: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This will bring you back to the design view. The only change that you will see is the type of query on the tittle bar. It will now say Make Table Query instead of Select Query.

This will bring you back to the design view. The only change that you will see is the type of query on the tittle bar. It will now say Make Table Query instead of Select Query.

Page 118: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

At this point, all that we have done is to create the Action Query. We still must RunRun the query in order to make the Action happen.

At this point, all that we have done is to create the Action Query. We still must RunRun the query in order to make the Action happen.

Page 119: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Before we RunRun the query however, what is it that we must do in order to test it?

Before we RunRun the query however, what is it that we must do in order to test it?

Page 120: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

We really should View the query in its datasheet view first, just to make sure that the criteria is set up correctly.

We really should View the query in its datasheet view first, just to make sure that the criteria is set up correctly.

Page 121: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The final step, once we know that it will act upon only the records that we want it to, is to RunRun the Query.

The final step, once we know that it will act upon only the records that we want it to, is to RunRun the Query.

Page 122: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 123: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Once we click “Yes” the Action Query will do its thing and return us to the Design view of the Query. To see if it really worked, you can press the F11F11 Function key which will show us the database window.

Once we click “Yes” the Action Query will do its thing and return us to the Design view of the Query. To see if it really worked, you can press the F11F11 Function key which will show us the database window.

Page 124: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Click on the Tables Tab to View the Tables

The new table will be shown in the list of Table Objects.

Page 125: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To return to the design view of your query, simply left click in the gray area of the query that is in the back ground.

To return to the design view of your query, simply left click in the gray area of the query that is in the back ground.

Page 126: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

An “Append Query” adds records from an existing table or query to the end of another table.

Page 127: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

For an append query, you choose the fields you want to append from one or more tables or queries;

the selected data remains in the original tables.

Page 128: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The data that you selected, will be added to the end

of another already existing table.

Page 129: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To create an Append query, first, right click on an existing query in the Database window.

To create an Append query, first, right click on an existing query in the Database window.

Page 130: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Then select Design View from the resulting Short Cut Menu.

Then select Design View from the resulting Short Cut Menu.

Page 131: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Access will then open the query in the design view, and your are ready to begin converting it to an Append Query.

Page 132: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Step two is to click on the Queries type button on the tool bar and then select Append Query.

Step two is to click on the Queries type button on the tool bar and then select Append Query.

Page 133: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Alternatively you can click on the Query Option from the Menu Bar and then select Append Query. The choice is yours, either way is the same.

Alternatively you can click on the Query Option from the Menu Bar and then select Append Query. The choice is yours, either way is the same.

Page 134: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Special Customers

You will then be prompted for the name of the table that you are appending the data to. Enter the name an then click on the OK button.

You will then be prompted for the name of the table that you are appending the data to. Enter the name an then click on the OK button.

Page 135: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

This will bring you back to the design view. The only change that you will see is the type of query on the tittle bar. It will now say Append Query instead of Select Query.

This will bring you back to the design view. The only change that you will see is the type of query on the tittle bar. It will now say Append Query instead of Select Query.

Page 136: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

At this point, all that we have done is to create the Action Query. We still must RunRun the query in order to make the Action happen.

At this point, all that we have done is to create the Action Query. We still must RunRun the query in order to make the Action happen.

Page 137: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Before we RunRun the query however, what is it that we must do in order to test it?

Before we RunRun the query however, what is it that we must do in order to test it?

Page 138: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

We really should View the query in its datasheet view first, just to make sure that the criteria is set up correctly.

We really should View the query in its datasheet view first, just to make sure that the criteria is set up correctly.

Page 139: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The final step, once we know that it will act upon only the records that we want it to, is to RunRun the Query.

The final step, once we know that it will act upon only the records that we want it to, is to RunRun the Query.

Page 140: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 141: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Once we click “Yes” the Action Query will do its thing and return us to the Design view of the Query. To see if it really worked, you can press the F11 Function key which will show us the database window.

Once we click “Yes” the Action Query will do its thing and return us to the Design view of the Query. To see if it really worked, you can press the F11 Function key which will show us the database window.

Page 142: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Click on the Tables Tab to View the Tables

Open the table that you appended the data to. You should see the additional records at the end.

Page 143: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To return to the design view of your query, simply left click in the gray area of the query that is in the back ground.

To return to the design view of your query, simply left click in the gray area of the query that is in the back ground.

Page 144: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

DeleteDelete and UpdateUpdate Queries are CreatedCreated, , TestedTested and RunRun in muchthe same way.

Let’s consider thisimportant note ofinterest however. The Make-Table and Append Queries, will copy data from already existing tables and place the data in either a new table or another already existing table.

Page 145: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

DeleteDelete and UpDateUpDate Queries will modifymodify the data in the table thatthey are based on, ratherthan acting on other tables.

Page 146: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

A “Delete Query” deletes a group of records (or all records) from one or more tables. You choose which records you want to delete by entering selection criteria.

Deleting records removes them permanently from the database.

Page 147: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Figure 8-19 Design View for the Delete Query

Selection criteriaSelection criteria

Delete Row insertedDelete Row inserted

When you create a delete query, one additional row in created in your design grid.

Page 148: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

An “Update” query changes selected fields and records in one or more tables. You choose the fields and records you want to change by entering the selection criteria and the update rules.

An update query will permanently modify data in the database.

Page 149: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

As with a Delete Query, when you create an UpDate Query a new row is added to your design grid.

Figure 8-22 Updating the Contact Field

Selection criteriaSelection criteria

UpDate ExpressionUpDate Expression

Page 150: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder

If you need help creating a complicated expression, you can create it using the Expression Builder.

Page AC 3.34

Page 151: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder

The Expression Builder is an Access tool that contains an expression box in which the expression is entered,

Page 152: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder

buttons for common operators used in an expression,

Page 153: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder and one or more lists of expression elements, such as table and field names.

Page 154: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder The Expression Builder is activated by first clicking in the Field that you want the expression in, and then clicking on the expression builder button on the ToolBar.

Page 155: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder Or you can start the Expression Builder in a Field or Criteria cell in Query Design view or in the Condition column of the Macro window.

1) Right-click where you want to insert the expression.2) On the shortcut menu, click Build.

Page 156: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The Expression BuilderThe Expression Builder If the cell or Condition column where you start the Expression Builder already contains a value, that value is automatically copied into the expression box.

Page 157: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click
Page 158: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the upper section of the builder is an expression box where you build the expression.

Page 159: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Use the lower sections of the builder to create elements of the expression, and then paste these elements into the expression box to form an expression.

Page 160: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

You can also type parts of the expression directly into the expression box.

Day(7)

Page 161: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the middle section of the builder are buttons for commonly used operators.

Page 162: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

If you click one of the operator buttons, the Expression Builder inserts the operator at the insertion point in the expression box.

Page 163: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

For a complete list of operators you can use in expressions, click the Operators folder in the lower-left box and the appropriate operator category in the middle box. The right box lists all operators in the selected category.

Page 164: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the lower section of the builder are three boxes:

Page 165: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the lower section of the builder are three boxes: The left box contains folders that list the table, query, form, and report database objects, built-in and user-defined functions, constants, operators, and common expressions.

Page 166: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the lower section of the builder are three boxes: The middle box lists specific elements or categories of elements for the folder selected in the left box. For example, if you click Built-In Functions in the left box, the middle box lists categories of Microsoft Access functions.

Page 167: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In the lower section of the builder are three boxes: The right box lists the values, if any, for the elements you select in the left and middle boxes. For example, if you click Built-In Functions in the left box and a category of functions in the middle box, the right box lists all built-in functions in the selected category.

Page 168: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

In order to view new field names in the Expression Builder, you must first save the table or query containing the new fields.

If an object or function isn't listed in the lower section of the Expression Builder, it's not valid in the context where you started the builder. For example, you can't refer to other fields and controls in the validation rule for a field in table Design View, so the Tables, Queries, Forms, and Reports folders aren't available if you start the Expression Builder from the Validation Rule property of a field in table Design view.

Page 169: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

When you paste an identifier in your expression, the Expression Builder pastes only the parts of the identifier that are required in the current context. For example, if you start the Expression Builder from the property sheet of the Customers form, and then paste an identifier for the Visible property of the form in your expression, the Expression Builder pastes only the property name: Visible. If you use this expression outside the context of the form, you must include the full identifier: Forms![Customers].Visible.

Page 170: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Here are some very important considerations about Action queries.

Pay close attention to the following. As a matter of fact, it might even be a good idea to take some notes as I have a very strong feeling that you might be needing this information in the very near future.

Page 171: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Make Table” and “Append” Queries

When you “Run” a “Make Table” query, you copy data from the Source Table to a new Target Table.

When you “Run” an “Append” query, you copy data again from the Source Table to an already existing table.

Page 172: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” a “Delete” query,you Delete data in the Source Table.

If you run a “Make Table” query to make a new table and then change it to an “Append” query, your Source Table remains the same.

Page 173: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” a “Delete” query,you Delete the Source Table.

If you need to delete data from the new table that you made with a Make Table Query, be careful not to just change your query type from a Make Table query to a Delete query. The result will be to delete data from the original source table, not the new table.

Page 174: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” a “Delete” query,you Delete the Source Table.

In order to delete data from the new table, you will need to make an entirely new query, from scratch, based on the new table.

Also, watch your criteria if not deleting all records.

Page 175: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” a “Delete” query, you Delete the Source Table.

Remember, with Delete Queries, there is no undo. Therefore once the dastardly deed is done, it’s DONE!

Page 176: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” an “Update” query, you Update the Source Table.

In order to Update data in the new table, you will need to make an entirely new query, from scratch, based on the new table.

Again, watch your criteria if not updating all records.

Page 177: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Working with “Delete” and “Update” Queries

When you “Run” an “Update” query, you Update the Source Table.

Remember, with Update Queries, there is no undo. Therefore once the dastardly deed is done, it’s DONE!

Page 178: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check ReviewA special note for the on-line students:

The following Quick Check Review questions are only for your benefit. They are not required for the course but here to give you a chance to test your knowledge.Click the arrow button below to skip these questions and go directly to the class project for this class.

Page 179: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Page AC 8.16and

Page AC 8.31

Quick Check Review

Page 180: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Quick Check ReviewReview

Let’s take a fewmoments to break upinto discussion groups.Each group will discussthe quick check questions on page AC 8.16 and Page AC 8.31 in your books. We will then review the answers at the end of the discussion.

Page 181: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Quick Check Review Session Review Session

8.18.11) What is the purpose of a crosstab query?

Page 182: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Quick Check Review Session Review Session

8.18.12) What are the four Query Wizards you can use to create a new query?

Page 183: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Quick Check Review Session Review Session

8.18.13) What is a Find Duplicates Query?

Page 184: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.1Session 8.1

4) What does a find unmatched query do?

Page 185: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.1Session 8.1

5) What happens when you set a query’s Top Values property?

Page 186: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.1Session 8.1

6) What happens if you set the top Values property of a query to 2 and the first five records have the same value for the primary sort key?

Page 187: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

1) What is an action query?

Page 188: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

2) What precautions should you take before running an action query?

Page 189: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

3) What is the difference between a make-table query and an append query?

Page 190: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

4) What does a delete query do?

What do you do if you “Run” a delete query by mistake?

Page 191: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

5) What does an Update Query do?

Page 192: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

6) How does the design grid change when you create an update query?

Page 193: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Quick Check Review Quick Check Review Session 8.2Session 8.2

7) _______ Filter/Sort lets you specify multiple selection criteria and specify a sort order for the selected records.

Page 194: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Here we goagain !

Page 195: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

The staff at NSJI have just finished their weekly meeting and as you can expect, there are more

questions than ever to be answered!

Page 196: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

To be posted on our class discussion board.

Class Discussion TopicITEC2404

In your own words, and from what you have learned so far, give an example (other than in your book) of how you might use each of the action queries.

Page 197: On Line Viewing Tip #1: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click

Your task today is to complete the exercises in Tutorial #5 Page AC 5.15 through Page AC 5.22 Also, in

Tutorial #8 Page AC 8.03 throughPage AC 8.29

Tutorial #5 Level 2 Disk1 Jobs.mdbTutorial #8 Level 3 Disk1 Overseas.mdb