course ilt forms and queries unit objectives create forms by using autoform and the form wizard, and...
TRANSCRIPT
Cou
rse
ILT
Forms and queries
Unit objectives Create forms by using AutoForm and the
Form Wizard, and add or modify form headers and footers
Open and enter data in a form; modify form controls and properties; align form controls; use a form to modify data; and save, close or delete a form
Find, sort and filter records in forms Create and run a simple query, save a
query, modify a query to add fields, specify or modify criteria in a query, and close or delete a query
Cou
rse
ILT
Topic A
Topic A: Creating forms Topic B: Modifying forms Topic C: Finding, sorting, and filtering
records Topic D: Queries
Cou
rse
ILT
Forms
Primary objects to enter and edit data Three views:
– Design view - to create a form– Datasheet view - to view row and column
format– Form view - to view one record
Cou
rse
ILT
Using AutoForm
1. Open the database
2. Select the table to base form
3. Click AutoForm button
4. Save the form
Cou
rse
ILT
The Design view window
Form Header section Field list
Footer section Detail section
Cou
rse
ILT
Using the Form Wizard
1. Click Form
2. Click New button
3. Select Form Wizard and table
4. Click OK
5. Select the fields to display
6. Select layout
7. Select style
8. Enter name of form, click Finish
Cou
rse
ILT
Adding a header
1. Click form header section
2. Click Toolbox button
3. Select label control from toolbox
4. Place label control in form header
5. Enter the heading
6. Save the form
Cou
rse
ILT
Topic B
Topic A: Creating forms Topic B: Modifying forms Topic C: Finding, sorting, and filtering
records Topic D: Queries
Cou
rse
ILT
Opening a form
1. Click Forms
2. Select form
3. Click Open
Cou
rse
ILT
Entering data in a form
1. Click New Record button
2. Type data
3. Press tab
4. Repeat step 2 & 3 for other fields
5. Save and close form
Cou
rse
ILT
Modifying controls
1. Select fields
2. Drag controls to reposition
3. Save form
Cou
rse
ILT
The Property Sheet
Cou
rse
ILT
Aligning controls
1. Open form in Design view
2. Select controls
3. Choose Format, Align, and menu option
4. Update and close form
Cou
rse
ILT
Modifying data
1. Open form in Form view
2. Click field to modify
3. Type text
Cou
rse
ILT
Saving a form
1. Choose, File, Save As to open the Save As dialog box
2. Enter the name
3. Click OK
Cou
rse
ILT
Deleting a form
1. Close the form
2. Click Forms
3. Select the form
4. Press Delete
Cou
rse
ILT
Topic C
Topic A: Creating forms Topic B: Modifying forms Topic C: Finding, sorting, and filtering
records Topic D: Queries
Cou
rse
ILT
Finding records
1. Place insertion point
2. Click the Find button
3. Verify that Find tab is active
4. Enter data
5. Click Find Next
6. Click OK when done
Cou
rse
ILT
Sorting records
Select the field Click Sort Ascending button or
Sort Descending button
Cou
rse
ILT
Applying a filter to a form
1. Click the Filter By Form button
2. Select the field
3. Select the value to set filter
4. Click Apply Filter
Cou
rse
ILT
Topic D
Topic A: Creating forms Topic B: Modifying forms Topic C: Finding, sorting, and filtering
records Topic D: Queries
Cou
rse
ILT
Creating a simple query
1. Open Database
2. Click Queries
3. Click New
4. Select Design View and click OK
5. Add table and click Close
6. Select fields
Cou
rse
ILT
The query Design view
Cou
rse
ILT
The Save As dialog box
Cou
rse
ILT
Adding fields to a query
1. Click cell of Field row
2. Select field from list
Cou
rse
ILT
Using criteria
1. Click the Criteria cell
2. Enter expression
Cou
rse
ILT
Changing criteria
1. Click the Criteria cell
2. Enter new expression
3. Run query
Cou
rse
ILT
Close a query
Choose File, Close Click Close on the Control menu Click Close button
Cou
rse
ILT
Deleting a query
1. Close the query
2. Click Query
3. Select query
4. Press Delete
Cou
rse
ILT
Unit summary
Created forms by using the AutoForm and the Form Wizard, and added a title and footer to a form
Opened and entered data in a form, modified controls and form properties, aligned controls, modified data, saved, closed, and deleted a form
Searched, sorted and filtered records Created, ran, and saved a simple
query, modified and specified criteria, closed and deleted a query