0% found this document useful (0 votes)
83 views4 pages

CSU 07203 AccessDB LabProj 3 Vertinary DB

The document provides instructions for creating an Access database with tables for pet owners and their pets. It includes: 1) Creating tables with fields for owner and pet information, setting data types and relationships between the tables. 2) Entering sample data and performing basic queries like filtering dogs or pets with certain birth years. 3) Designing forms and reports to display the owner and pet data. 4) Instructions are provided over multiple parts and steps to build the database with sample data, queries, forms and a report on the owner and pet information.

Uploaded by

Kelvin Chaula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views4 pages

CSU 07203 AccessDB LabProj 3 Vertinary DB

The document provides instructions for creating an Access database with tables for pet owners and their pets. It includes: 1) Creating tables with fields for owner and pet information, setting data types and relationships between the tables. 2) Entering sample data and performing basic queries like filtering dogs or pets with certain birth years. 3) Designing forms and reports to display the owner and pet data. 4) Instructions are provided over multiple parts and steps to build the database with sample data, queries, forms and a report on the owner and pet information.

Uploaded by

Kelvin Chaula
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

ACCESS DATABASE PRACTICAL- Min Proj.

The Institute of Finance Management


FCIM
ABC VeTs DB [ 10 marks], DCS/DIT [1], DUE- AUGUST 10, 2020 @15:00HRS

1. Start Microsoft Access, and create a new blank database. You need to use Microsoft
Access 2007 or above. Please use assembled groups (3-members only@)
2. Please name your database as "ABCVeTsDB". It must be saved in Access format.
3. Close Table 1. Create a table called Owners using Design View. Add a field
called Ownerid and set it as the primary key. Also add fields for the Owners’ name,
date of birth, addresses (street, city, state, and zip), and phone numbers as shown in
figure 1 below.
4. Select appropriate data type for each field. Note that the zipcode and phone numbers
contain symbols other than numbers. So the number data type is not appropriate for
those fields.
5. Set default values for city and state.
6. Set input masks for zip code and phone number.
7. Switch to datasheet view and enter the data for the six owners shown in figure 1.
8. Add yourselves as another owners in your group(sub group). You will need to have at
least 10 records of owners
9. Resize the columns in the Owners table to display all data.
10. Close your Owners table.
11. Create a second table called Pets using Design View. Add a field called PertsID with a
datatype of "AutoNumber" and set it as the primary key. Add fields for the remaining
fields shown in Figure 2 below. When you have done it, close all tables and create
relationship between tables
12. Use the Lookup Wizard as the data type for Owner. In the wizard, choose Look up
values in a table, select the table Owner, then add OwnerID and OwnerName to
the Selected Fields. Accept all other values in the wizard. (Note: after the Lookup
Wizard has finished, the type will show as Text because that is the type of the
Ownerid/ownername field)
13. Use the Lookup Wizard again for the data type for the Type field. This time, choose I
will type in the values I want, enter Dog, Cat, Bird, Other in 4 rows under Col1 (the
rows will open up as you type). Accept all other values in the wizard.(Note: after the
Lookup Wizard has finished, the type will show as Text because that is the type of the
values you entered)
14. Choose the appropriate data type for each of the other fields so that they display as
shown in the table.
15. Enter the data for the pets in Figure 2. Do not enter anything in the ID field. Access
will automatically give each pet an ID. If you set up the Lookup fields appropriately
in step 8, then the Owner and Type fields should now contain pull-down lists to select
the data.
16. Add ten more pets for yourself.
Page 1 of 4
17. Resize the columns in the Pets table to display all data.
18. Save the Pets table.

Owners
Ownerid Owner Name dateOfBirth Street City Country Zip Phone
120 Jackson, Laura 12/02/1972 300 Samora Avenue Dsm TZ 28409-1001 (255) 22-5424745
121 Bradwell, Carolyn 26/04/1980 132 Sokoine drive inn Dsm TZ 28412-2002 (255) 22-2708836
122 Jones, Laurie 23/05/2000 601 River side Rd Arusha TZ 28403-3297 (255) 21-9614402
130 Greene, Lydia 10/01/1978 123 Princess PLC Arusha TZ 28401-4233 (255) 21-9614422

140 Stone, Mary 16/04/1986 601 Njiro Rd Arusha TZ 28403-3297 (255) 21-9618829
145 Stone, Scott 17/06/1992 1002 Pamba Rd mwanza TZ 27111-2012 (255) 23-7669651

Figure 1: Owners

Pets
Pet Name Ownerid Type BirthYear LastVisit Balance
Sadie 140 Dog 2015 10/1/2018 $0.00
Sasha 140 Cat 2016 3/25/2017 $900.00
Blackie 140 Cat 2018 3/25/2019 $1000.00
Casey 145 Dog 2019 6/12/2020 $1300.00
Dudley 121 Dog 2017 7/12/2019 $200.00
Diggity 121 Dog 2018 5/12/2020 $200.00
Nemo 120 Other 2019 1/15/2020 $525.00
Buffett 130 Bird 2018 1/10/2020 $0.00
Kodi 122 Dog 2019 4/28/2020 $850.25
Quincy 140 Dog 2019 3/8/2020 $0.00

Figure 2: Pets

Part 2: Use the Pets table to do the following:

1. Use the Filter by Selection feature to display only dogs. Sort alphabetically
by Owner. Remove the filter.
2. Use the Advanced Filter to display all pets (not just dogs) born in either 2005 or 2012.
Sort in descending order by Balance. Click the Toggle Filter button to see the
results. Remove the filter, and close the table. You do not need to save the changes to
the table.

Page 2 of 4
Part 3: Create the four queries described below using the Design View for each. Also for
each query, resize the columns to display all data. Save each query (once it’s working) using
the default names based on the question number such as QueryQn1, QueryQn2, etc.

1. A list of dogs containing only pet name, owner, and date of last visit sorted
alphabetically by owner. (Do not display the pet type)
2. A list of owners and balances for accounts having balances greater than or equal to
$800. Sort in descending order by balance.
3. A list of owners and balances for accounts having balances less than or equal to
$200. Sort in ascending order by balance
4. A list of pet names, owner names, phone numbers, and dates of last visit between
January 2019 and January 2020, sorted (ascending) by date.
5. A list of all dogs and cats that includes the pet name, birth year, the owner's name,
address (street, city, state, zip), and the animal type sorted in descending order by birth
year.

Part 4:

1. Using the Form design view, create a form based on the Pets table. Include all fields
from the table, use the design view tools to add buttons for ‘AddNew’, ‘Delete’,
‘Clear’, ‘NextRecord’, ‘PreviousRecord’, you should do the same in Owner table
appropriately
2. Make sure the detail section is at least 2.25" tall.
3. Select all the fields in the "Detail Section". Then click the "Remove" button in the
"Control Layout" group of the "Arrange" tab.
4. Resize the fields to approximately the size shown below (both label and value boxes).
5. Rearrange the fields to display as shown below.
6. Expand the Header section so that it is approximately 1”, and change the label to:
ABC Veterinary Services. Make the text size 22 points, and resize the box to display
it fully.
7. Left align all form labels and values.
8. Add a label to the form footer with your group number and course.
9. Download any relevant picture and add it as a logo to the detail section.
10. Save your form.

Page 3 of 4
Pls Save My Pet!!!!

Figure 3: Example Form//sample. You need to make your own design which reflects
provided data.

Part 5: Create a report using the Report Wizard containing all of the fields from
the Owners table and the Name, Birth Year, and Date of Last Visit from the Pets table.

1. On the next screen of the wizard, accept the default view.


2. On the next screen, add a grouping level containing Owners Name.
3. On the next screen, sort in ascending order by pet’s date of birth.
4. Accept all other defaults in the wizard.
5. Switch to design view.
6. Change the label box in the report header to contain only your name or group name.
7. Make sure all fields are large enough to display all information.
8. Save the report.

Note that, Assessment shall be done during practical sessions, plan not to miss
your practical session, failure to show up will penalize your score by -10 marks!!!

Page 4 of 4

You might also like