Activity 1
If you haven't already done so - add around 10 members to your Members table and around 30 products (Movies, Games, Consoles etc.) to your Products table.Creating our Transaction table
The idea of our database is to keep our Members details, our Products details, and to keep track of borrowings!!
For this to happen, we need another table that will create a record every time an item in rented out.
What do we need in this table?
Date Borrowed (Date)
Date Due (Date)
Date Returned (Date)
Product barcode (Short Text)
Member Number (Short Text)
Activity 2
Create the Rentals Table (as per above)
Creating our Rentals Form
Setting up the Relationships
The Rentals form is the one that we will use every time a member borrows an item. Before we can create the form, we need to set up a relationship between the Rentals table and the Members and Product tables.
From the Database Tools tab, select Relationships
You will then be able to place the 3 tables on the relationship canvas.
To create the relationship, Drag the Membership Number from the Members Table on to the Member Number in the Rentals Table
If you have done it correctly, it should look similar to the above screen.
Save and close the relationship window
Activity 3
Create the Relationship between your 3 main files.
Create the Form
Design a Blank Form using the Members table as the data source.Add some basic information - enough to identify the member so perhaps address and mobile number
Use the Subform tool to draw the subform underneath the member details and follow the wizard prompts
I like to use the Membership number as a drop down box to select a member from.
Use the Combo Box tool and follow the wizard prompts
Test out the form.
Activity 4
- Create the Rentals Form/subform
- Test the form by selecting a member and "lending" a product to them. At this stage you will need to make a note of a valid product barcode
** Advanced Exercise - On your own, try and do the following:
- Add a Membership number combo box at the top of the form to select the customer from a list
- change the Barcode number in the subform to also be a combo box to select the correct movie from a list
- Change TAB order in the subform so that the membership number is first and Date returned last.
- Create a Form for RETURNS. This should have a drop down list to select the barcode and display the Loans in a subform. You can then scroll through the list and select the last one - it should have returned date as blank.
Class Exercise - Manor House Animal Rescue
Our practice exercise currently has 1 Table - our main table with the information about each animal. We need to create the table that keeps track of all activities that relate to each animal in our care.Actions Table
What information do we need to keep in our Actions Table?
*** Activity on Whiteboard ***
Activity 5
- Add some animals to your main table - say 10
- Add the Actions Table to your Manor House Animal Rescue database
- Create a Form/Subform to record Actions for our Animals
If you would like to watch the video on YouTube, click here
OR you can watch it below
Creating a Menu
The next stage of our little application is to build a menu that will tie it all together.From the Create Ribbon, choose Blank Form. Go into Design View and start by adding a label for the main heading.
Once you have the heading, you can add command buttons to open the forms and eventually print reports etc.
Here are the steps to have a button to add and edit members.
You can pretty it up by including a background colour and different colour text etc. As this is our main menu, it would also probably contain our company logo.
Activity 6
Create a menu form for our Video Vidiots system with the following buttons.- Open your Member Form
- Open your Products Form
- Open your Genre Form
- Open your Rentals Form
- Open your Returns Form
Reports
While I much prefer to use the Form Design mode for creating forms, I am more than happy to use the Report Wizard to create simple reports. Reports are usually designed to be viewed on the screen and then printed, whereas forms are mostly for screen use. Many reports are straightforward listings and will require very little "tweaking".Simple Report
A simple listing style report is created by using the Report button on the Create Ribbon. Just select the table or query and click the button.Click on the table that you want to use for your report, and click on report.
This will create a report that contains every field in the table selected. Mine goes over 2 pages, which I don't want, so I will have to modify the design and reduce the width of a couple of fields.
I am happy with the final result as it now fits on a single landscape page.
Activity 7
- Create a Report to list of of our products.
- Create a Report to list all of our Members.
Custom Report
When you created the Members report, you would have found that by including everything, the report created is very cumbersome. We can create many different reports for different audiences and/or purposes. An example could be a Members report that just contains phone contact information. To do this, use the Report Wizard.Follow the prompts to create a custom report.
Activity 8
- Create a phone contact list for your Members table
- Add this report to your Main Menu
*** Advanced Exercise
- Create address labels for your members table
- Create Barcode labels for your products (include Barcode plus Title) - HINT: you will need a barcode font to have an actual barcode on the labels. Use Avery J8164 labels.
- Add these to your main menu.




















































