Chapter 11 - Relational Implementations for Personal Databases
Creating the Database Schema
CUSTOMER
ID
Name
Phone
Address
Street
City
State
Zip
ARTIST
0.N
WORK
ID
WorkID
ARTIST
0.N
Title
Copy
Description
ARTIST
ID
Name
Nationality
Dates
Birth
Death
WORK
0.N
CUSTOMER
0.N
ARTIST (
ArtistName
, Nationality, Born, Died)
CUSTOMER
CustomerNumber
, CustomerName, Phone, Street, City, State, Zip)
ARTIST_CUSTOMER_INT(
ArtistName, CustomerNumber
)
WORK (
ArtistName, Title, Copy
, Description)
Creating Tables
- using Access's Table Definition Form
Defining Relationships
- Tools|Relationships (drag & drop)
Creating Queries
SINGLE-TABLE QUERIES (QBE & SQL)
MULTI-TABLE QUERIES (Using Show Table dialog)
Creating Forms
Binding a Relation to a Form
(Point & Click)
Binding a Column to a Text Box Control
(Setting the Control Source field)
Subform Control
create a subform that has the required columns
identify the Record Source and bind the text boxes to columns
bind the subform to the form using the subform control (set the Source Object property)
Enter the keyfields for Link Child Fields and Link Master Fields
Binding a Table or Query to a Combo Box Control
Drop a ComboBox on the form
Enter CUSTOMER into the Row Source property (under Data tab)
Select the Event to take place (=AddIntersectionRow("ARTIST") in the After Update event)
Creating Reports
Grouping
Defining the Report
(based on table or query)
select Reports -> New -> name of table or query
select Sorting and Grouping from View menu - select fields, their order, and whether to include headers/footers
add lines where needed
adjust fonts, colors, etc.