Health Science Center IT Center - Training Training@health - Ufl.edu 352-273-5051
Health Science Center IT Center - Training Training@health - Ufl.edu 352-273-5051
Concepts
and Microsoft Access
2007
Health Science Center
IT Center – Training
[email protected]
352-273-5051
Database Concepts and Access 2007
Introduction
Database
Microsoft Access
Design and Creation
Plan
Tables
Queries
Forms
Reports
Things to Do
Contact your customer support
Backup
Backup
Backup
What is a Database?
A structured collection of related
data
An filing cabinet, an address book, a
telephone directory, a timetable, etc.
In Access, your Database is your
collection of related tables
Data vs. Information
Field
– A single item of data Name: Barry Harris
common to all records
Example of a Table
Fields
Records
Name GatorLink Phone College
Smith rsmith 392-3900 Pharmacy
Thomas bthomas 392-5555 Medicine
Van Winkle sleepyguy 846-5656 PHHP
Design and Document Your Database
What do I want?
(Outputs)
Multiple
No No Yes Yes
datasets
You can use a query to pull values from both tables into one datasheet.
Basic Design Rules
Data is broken down into Smallest Logical Parts
Each segment of data you want to sort or filter should be kept in
its own field. For example, what if I needed to sort by City or
Zip Code? Pulling fields together is fairly simple, pulling them
apart can difficult. ID Home Address
987 123 West Main Street,
Gainesville, FL 32601
654 456 South 3rd Road, Apt 12,
Newberry, FL 32684
EMPLOYEE TABLE
Emp Emp First Emp Last Emp Birth Emp Hire Emp System Emp
ID Name Name Date Date Signal # Comments
1234 Sallye Shapiro 6/17/1970 7/02/2001 123-450 N/A
Basic Design Rules
Unique Field Names
Often we will have the same type of data in multiple tables. IDs,
Comments, First Names, Last Names could all refer to different
datasets. DOCTOR TABLE
First Name Last Name
PATIENT TABLE Sallye Shapiro
First Name Last Name Samuel Smith
Annie Adams Sidney Samueson
April Appleton
Arnold Arlington
When these two Last Name fields are pulled
into the same query they will appear with the
Bobbie Brown
table name in front of the field name:
Butch Bruce
Patient Table.Last Name
Doctor Table.Last Name
Basic Design Rules
No Calculated Fields
In Microsoft Excel we enter the data and create our formulas all
at once. In Access you are creating a “Data” table, a table of the
raw data. If you want Access to do the calculations, you can
create an expression elsewhere in the database.
Emp ID Hourly Hours Pay
Rate worked
123 $10.00 40 $390.00
While each column in this particular data set has unique data, the
field that will work best for us is GL ID (GatorLink). Many
employees will work for the same college, have the same last
name and possibly even share telephone numbers, but each
employee should have a unique GatorLink ID.
When there is not a unique field in your data set, you can use an
AutoNumber. Access can create incremented or random
AutoNumbers for your primary key.
Basic Design Rules
Unique Records
We use the
ID LastName GatorLink Phone College
unique primary
key as our link 1 Smith rsmith 3-5051 Pharmacy
between our 2 Smith rsmith 273-5051 COP
tables, this helps 3 Smith rsmith 273-5051 Pharmacy
ensure we 4 Thomas bthomas 392-5555 Medicine
connect to the 5 Van Winkle sleepyguy 846-5656 PHHP
correct record.
Emp ID EmergencyConta
ct
2 Mary Anne Smith
Let’s Start Planning
Patients Appointments
Opening a Database
To open a database when
you start Access
– Choose the database you
wish to open from the left
hand panel, or choose
More… to browse for
another database
Datasheet
View
Design
View
Navigating Fields and
Records
To move through records and fields
Tab Home/End Page Up
Shift+Tab Ctrl+Home Page Down
Enter Ctrl+End The Arrow Keys
Employees
Customers
Reports
Forms
Customer
Company Name
Address
City
Telephone
Contact Name
Let’s take a break!