Title: CS 0131 Software for Personal Computing
1CS 0131Software for Personal Computing
- Week 12
- Access 2 Modifying a Table and Creating a Form
2Objectives
- Navigate a large table.
- Change field format properties.
- Set default field values.
- Insert a field.
- Define validation rules.
- Hide and redisplay fields.
- Find and replace data.
3Objectives (continued)
- Use Undo.
- Sort records
- Format a Datasheet.
- Create a form to simplify data entry.
- Preview, print, close, and save a form.
- Identify object dependencies.
- Add file and object dependencies.
- Add file and object documentation.
4Concept Preview
- Format Property
- Default Value Property
- Validity Rule
- Expression
- Find and Replace
- Sort
- Form
5Navigating a Large Table
Total records in table
6Moving Using the Keyboard
7Moving Using the Navigation
Button Effect First record, same
field Previous record, same field Next
record, same field Last record, same
field New (blank) record
8Moving In Between Fields
9Customizing Inserting Fields
- Add and delete fields
- Add restrictions on data
- Define how data will be displayed
10Concept 1 Format Property
- Used to specify the way data are displayed and
printed - Does not change the way Access stores data, only
the way it is displayed - Can create a custom format or choose from
predefined formats - See page AC2.9.
11Predefined Formats(Text and Memo Data Types)
12Concept 2 Default Value Property
- Used to specify a value when a new record is
created - Used when most of the entries in a field will be
the same for the entire table - Users can accept this value or enter another
value - Saves time while entering data
- See page AC2.11.
13Concept 3 Validation Rules
- Validation rules
- Used to control the data that can be entered in a
field - Expression that defines acceptable data
- Validation checks are done automatically
- Validation text
- Message that appears if invalid data is entered
- Can create your own message or use default
message - See page AC2.13.
14Concept 4 Expression
- An expression is a formula consisting of symbols.
- Produces a single value
- Create an expression by combining
- identifiers
- operators
- values
- See page AC2.15.
15Comparison Operators
16Expression Examples
17Entering an Expression
18Valid Entries
19Hide Redisplay Fields
- Hide fields to see more on screen
- Choose Format/Hide
- Redisplay hidden fields
- Choose Format/Unhide
20Concept 5 Find and Replace
- Quickly finds specific information
- Automatically replaces value with new information
- Find Command
- Locates all specified values in a field
- Replace Command
- Finds a value and replaces it with another
- See page AC2.20.
21Find and Replace(Access Options)
22Using Undo
- Undo will cancel your last action as long as you
have not made any further changes - Can undo if record has been saved by using Undo
Saved Record
23Concept 6 Sort
- Rearrange a table's records by sorting in a
different order - Sorting helps you find information quickly
- Can sort by a single field or by multiple fields
- See page AC2.27.
24Formatting the Datasheet
- Enhance the appearance of the datasheet by
applying formatting options - Can change the appearance of
- Cells
- Gridlines
- Background and gridline colors
- Border and line styles
- Datasheet formats affect the entire datasheet
25Changing Background Color and Gridline Color
26Changing the Text Color
Changes text color
Adds bold
Adds background color
27Concept 7 Forms
- A form is a database object used to display
records onscreen - Forms are based on underlying tables
- Include design control elements
- Descriptive text
- Titles labels
- Lines, boxes, and pictures
- Forms can use calculations
- See page AC2.33.
28The Form Wizard
- An easy way to create Access forms
- Select fields from underlying table
- Place fields in tab order the order you want
them to appear on the form - Select layout
- Select style
- Enter a name for the form
29Using the Form Wizard
30Select Fields
Adds selected field to form
First field to display in form
Adds all fields to form
31Select Form Layout
32Layout Style
33Form Style
Sample of selected style
Form styles
34Enter Name for Form
Enter name for form
35Navigating in Form View
- Use the same navigation keys in Form view that
are used in Datasheet view - Move between fields by using
- TAB
- ENTER
- SHIFT TAB
- The directional keys on the keyboard
36Identifying Object Dependencies
- A form is an object added to the database
- Many objects are dependent on other objects
- A form is dependent on the database table
- A form needs a table for content data
Object Dependencies task pane
Shows objects depends on the Employee Records
table
37Documenting a Database
- Title
- Subject
- Author
- Keywords
- Comments
- Use File Properties just as before. Can also
apply to specific objects.