Procedures LESSON 31: CREATING CROSSTAB QUERIES Using the Crosstab Query Wizard box, click Crosstab Query Wizard. 5. In the next Crosstab Query the table or query on which you want to base the query. 7. In the next Crosstab Query the field(s) that will be the source for column headings. 9. In the next Crosstab Query the field you want to summarize from the Fields list, and the desired summary function from the Functions list. 11. In the next Crosstab Query Wizard dialog box, enter a name for the query. 12. Click Finish. Creating a Crosstab Query in Design View 2. Click the Query Design 3. In the Show Table dialog box, specify the table or query on which you want to base the crosstab query and click Add. 4. Click Close to close the Show Table dialog box. 5. Add the desired fields to the query grid. 6. Click the QUERY TOOLS 7. Click the Crosstab button. 8. In the Crosstab row in the query grid, specify query options as desired. 9. Click the Save button on the Quick Access Toolbar. 10. In the Save As dialog box, enter a name for the query. 11. Click OK. 1
LESSON 32: CREATING QUERIES THAT FIND UNMATCHED OR DUPLICATE RECORDS Using the Find Unmatched Query Wizard box, click Find Unmatched Query Wizard. 5. In the next Query Wizard or query on which you want to base the query. 7. In the next Query Wizard or query that contains related records. 9. In the next Query Wizard dialog box, verify the matching field. 11. In the next Query Wizard dialog box, specify the fields to include in the query results. 12. Click Next. 13. In the next Query Wizard dialog box, enter a name for the query. 14. Click Finish. Using the Find Duplicates Query Wizard box, click Find Duplicates Query Wizard. 5. In the next Query Wizard or query on which you want to base the query. 7. In the next Query Wizard dialog box, specify the field(s) that might contain duplicate data. 9. In the next Query Wizard dialog box, specify the fields to include in the query results. 11. In the next Query Wizard dialog box, enter a name for the query. 12. Click Finish. 2
LESSON 33: CREATING QUERIES THAT PROMPT FOR INPUT Creating Criteria- Based Prompts Design view, click in the desired field s Criteria row. 2. Type the message you want for the prompt in square brackets. 4. In the prompt, enter the desired parameter value. 5. Click OK. Showing All Records If No Parameter Is Entered Design view, click in the desired field s Criteria row. 2. Type the message you want for the prompt in square brackets. 4. In the prompt, click OK without entering a parameter. Creating a Field Prompt Design view, click in the first empty column in the Field row. 2. Type the desired expression. 4. If necessary, format the field using the Property Sheet options. 6. In the prompt, enter the desired value. 7. Click OK. 3
LESSON 34: CREATING ACTION QUERIES Creating an Update Query Design view, click the QUERY TOOLS DESIGN tab. 2. Click the Update 3. In the Update To row in the query grid, click in the field whose values you want to update. 4. Type the value or expression that describes the updated data. 6. In the confirmation message, click Yes to continue. Creating a Delete Query Design view, click the QUERY TOOLS DESIGN tab. 2. Click the Delete 3. In the Criteria row in the query grid, click in the field that contains the value of records you want to delete. 4. Type the value or expression. 6. In the confirmation message, click Yes continue.. 4
LESSON 35: WORKING WITH ADVANCED QUERY OPTIONS Changing the Join Type 2. Double-click the join line between the tables. 3. In the Join Properties dialog box, click the desired join option. Changing the Join Type for a Relationship 1. In the Database window, click the DATABASE TOOLS tab. Relationships Group 2. Click the Relationships 3. In the Relationships window, double-click the join line between the desired tables. 4. In the Edit Relationships dialog box, click Join Type. 5. In the Join Properties dialog box, click the desired join option. 6. Click OK. Changing Field Properties in Query Design View 2. In the query grid, click in the field s column you want to change. 3. In the Database window, click the QUERY TOOLS Show/Hide Group 4. Click the Property Sheet 5. In the Property Sheet task pane, change properties as desired. Showing Top Values 2. In the query grid, in the desired field s column, click the Sort drop-down arrow. 3. Click the desired sort order. 4. In the query grid, click in the sorted field s column whose top values you want to display. 5. Click the QUERY TOOLS Query Setup Group 6. Click the Return button drop-down arrow and specify the top values. OR Enter the top value directly in the Return box. 7. Run the query. 5