Title: Access exercise
1Access exercise
2Start Access
3Choose Blank Database
4Select where database is stored
- On your own computer, default is My Documents or
Documents - In lab, click folder icon to go to your storage
device
5(No Transcript)
6Pick a name for the table
- Or use the default name something like Table1
7Switch to design view
8Add fields
- Let the ID field stay. Its an index field.
That makes the database run better.
9How to change the data type
10At least 5 fields with 4 different data types
11Switch to datasheet viewby clicking on View
12Type a first name
- The ID field fills in automatically
13Add six made-up entriesInclude yourself as one
14Make a form
- Click on Table1table on the left
- Click Create tab
- Click Form
15It gives you a basic form
- Make a change, such as to the color. Use
auto-format to change the color scheme.
16Move to the last record
- Then insert a new (blank) record
17Switch to Form View
- And then add a new made-up record
18A select query
- Create Tab, then Query Wizard
19Choose Simple Query
- Then move all fields to the right box
- This will make all fields appear in your results
20At the last step, click Modify Query
- This lets us filter the results
- At the bottom of the screen, type in one or two
criteria
21Click ! (upper left) to run the query
- This creates a new table in your database
22Create a new table
- Click create tab, choose table, then Design view
23Add fields
24Switch to datasheet view.Add some records
- For customer number, use numbers from 1 to 7
25Create another query
- Add all fields from Table2
- Then add all fields from Table1
26System relationships
- If you didnt get the error message, this wont
come up automatically. In that case, click on
the Database Tools tab near the top of the
screen. Then click on the Relationships box.
27Add table1 and then table2
28Drag Customer Number from table2 to ID in table1.
- In the Edit Relationships box, change the fields
under Table 2 and Table 1 so they look like this
(if they dont look like this already)
29Relationship is shown
30Create query
- Add all fields from Table 1, then all fields from
Table 2. Then modify query design.
31Uncheck fields you dont wantand type a last
name to match
32Run the query
- Youll see the books that this person ordered
- Save all your tables, forms, and queries, and
submit the file on Blackboard.
33For additional credit
- Do an update query that raises all the prices by
some percentage. - Use Access Help, topic Update Query, to see how
to do it
34Using Help to get instructions for an update query
- Click the little question mark in the upper right
corner. - Search for update query.
- The second item on the list is best.
- Follow each step carefully
35Update query for additional credit
- To raise each books price by 50, use this
formula Price1.5 - The Help will show you where to put it
- Scroll down to here ? for instructions you
should follow carefully - Again, save your queries and tables and submit
your file on Blackboard.