Você está na página 1de 6

Hands-On Lab, Access 4

NAME:

Kyle Scott

Due in Lesson 10 > Hands-On Lab by 4:59 p.m. on Friday in Week 10.
Learning Outcomes:
In this lab, you will: Examine query criteria; use forms to add new records; edit a table to
include attachments; create and modify a form; create a report based on a query; use the
Lookup Wizard to generate a list of possible values for a table field; delete a field; reflect on your
strengths and struggles with Access.

Step 1:
Examine the criteria in an existing query:
1. Open the Access file LifesAnimalShelter.accdb that you downloaded with this labs files.
2. In Access, make sure that the Navigation pane is set to display All Access Objects.
3. Open the only query in the database in Design view. After examining the criteria, explain
how a particular combination of field and criteria is responsible for this query being titled
PetsWithoutMatchingOwner.
Most likely this represents these are animals without owners but also
information to help them get a new home.
4. Close the query.

Step 2:
Add data to an existing form:
1. Open the Owner form. Use the following data to add a new record to the database:
OwnerID
0105
OwnerLastName Obama
OwnerFirstNam
Michelle
e
Address
1600 Pennsylvania
Avenue NW
City
Washington
State
DC
Zip
20500
Phone
(202) 456-1111

2. Close the Owner form.


Step 3:
Edit a table to include image attachments:
1. Open the Pets table. Change the view to Datasheet view.
2. Select the arrow to the right of Click to Add in the column header, then click Attachment.
The first record in the Pets table will now look like this:
BT118 A. Johnson Page 1 of 6

3. Add a new record


Pet Name
Type
Breed
Age
Gender
Color
FKOwnerID
(Attachment
)

to the Pets table.


Bo
Dog
Portuguese Water Dog
7 yrs
M
Black/ White
0105

Right-click on
this image and
select Save As
Picture to
download it to
your
computer.
Name the
picture file
BoObama.jpg
To add the image of Bo the dog to his record in the
Pets table, click the paper-clip icon in the attachment
field, then click Add to browse for the BoObama.jpg
image you downloaded:
Click OK to add the image to the table.
Close the Pets table.

Step 4:
Create and modify a new form:
1. Click the Form Wizard button in the Create tab.
2. From the Pets table, add only the following fields:
Pet Name, Type, Breed, Age, Gender, Color, FKOwnerID

BT118 A. Johnson Page 2 of 6

3. Click Next to continue the wizard:


a. View your data by Pets.
b. Select the Columnar layout.
c. Accept the form title of Pets. Select Modify the forms design and click Finish.
4. Your new form will open in Design View and should look like this:

5. Modify the form:


a. Hit the F4 key on your keyboard to display the Property Sheet.
b. Select the Pet Name textbox.
c. Hold down Shift while you select all of the other textboxes, one a time.
d. In the Property Sheet, change the Width to 2.5 and hit Enter.
e. Change the Text Align property to Left and hit Enter.
BT118 A. Johnson Page 3 of 6

f. Change the View to Layout View. Your form should now look like this:

6. Change the View back to Design View.


a. Grab the right margin of the form and drag it to the 7 mark on the ruler.
b. From the Tools group in the Design tab, click the Add Existing Fields button to
display the Field List. Drag the Field1 group onto the blank area at the right side of
your form.
c. Delete the Field1 label, then use your mouse and/or arrow keys to re-position and
re-size the Field1 box so your form looks like this:

Step 5:
Add a record to your new form:
1. Change the View to Form View.
2. Navigate to the last record in the form, which will be a blank record.
3. Enter the following data to add the Obamas second dog, Sunny, to the database:

BT118 A. Johnson Page 4 of 6

Pet Name
Type
Breed
Age
Gender
Color
FKOwnerID
(Attachment)

Sunny
Dog
Portuguese Water Dog
3 yrs
F
Black
0105

Right-click on
this image and
select Save As
Picture to
download it to
your computer.
Name the file
SunnyObama.jp
g
To add the photo, click the image
box then click the paper-clip icon
to manage attachments:

Add the image of Sunny to her


record, then close the form.

Step 6:
Create a report based on a new query:

1. Create a query that shows only the pet name, owners last name, breed, and gender of
the dogs in the database. (HINT: You will need to add criteria to one more field that does
not show).

2. Run the query to test it, then save the query as Dogs.
3. Use the Report Wizard to create a report based on the Dogs query you just made.
a. Add all fields from the Query: Dogs to the report.
b. View your data by Owner, sort on Pet Name, and choose a Block layout. Click Finish.
c. Close the Owner report.

4. Close any open Access objects, then close the database, paying attention to where you
saved it on your computer.

BT118 A. Johnson Page 5 of 6

Step 7:
Reflect on your strengths & struggles with Access in preparation for next weeks Final:
STRENGTHS: Which Access concepts do you feel youve mastered?
I honestly felt like early on I learned and grasped the style of how Records are
held.
STRUGGLES: What concepts do you most need to review more before next weeks Final Lab?
In all honesty I have never used Access before this class and even if I go through
each step they all give me trouble in comparison to what it felt like near the
beginning of the term. This is obvious espically since I cant for whatever reason
upload the ObamaSunny.jpg image for the final query due to it is detected by the
machine.

Step 8:
Upload your completed Lab files in Blackboard:

1. Save this document to your computer, making sure you pay attention to where you
saved.

2. Follow these steps to submit your completed Lab files for scoring:
a. Go back to our BT118 course pages in Blackboard in your web browser.
b. If its not already open, click Lesson 10 and then Hands-On Lab.
c. Click Browse My Computer; navigate to the location where you saved your lab files.
d. Verify that your completed Word and Access files from this Lab are both attached.
e. Click the Save & Submit button to send your Lab to your instructor for scoring.

You are now finished with Lesson 10.


You are ready to begin Lesson 11 in Blackboard.

BT118 A. Johnson Page 6 of 6

Você também pode gostar