Microsoft Access Concepts and Terminology (1) - 2014
Microsoft Access Concepts and Terminology (1) - 2014
Now Access has some terms that differ from Excel, such
as Field. A field is a single piece of categorizing information
organized in columns. Excel calls them headings. An example
would be First Name, Last Name, and so forth.
A Record is a collection fields pertaining to one person
or entry. Like Bob Peterson from Los Angeles, California.
Page 1 of 8
A Table is a group of records stored in rows and
columns. So I could have a Customers Table with customer
information and an Employees table with employee information.
A Database in Access refers to a collection of seven
objects or tools. So not just tables, but queries, forms, reports,
macros, modules, and pages. The database has a size limit of 2
gigabytes. And that’s for ALL objects, not 2 gigs for each.
Page 2 of 8
Forms are used to enter data into a table. Everyone in
this world has had to fill out a form. Go to the DMV, the doctor’s
office, or buy something off the internet, you have to fill out
your personal information.
A form can be connected to either a query or a table. It
cannot be connected to multiple tables unless they are first
connected to a query. So if I want customer, employee, and
product information, all from different tables, pass them thru
the query and into the form.
A form can be used for data entry, can be set to read
only, or both.
Page 3 of 8
When creating a database the most important part
starts outside of the Access program. Many people feel
brainstorming isn't necessary or is trivial. I guarantee 90% of the
problems people have with their Access databases can or could
have been solved during their brainstorming session.
When building your tables the first thing you'll want to
do is list them out. Now I'm going to keep my example simple so
I'll pretend we've just inherited a car company and the tables
will be Customers, Employees, Cars, Orders, and Order Details.
Page 4 of 8
For our Cars table we can use the car's Vehicle
Identification Number. If the item being stored in the table has
something that defines it as unique, like a Vehicle Identification
Number or Social Security Number for our employees, use it.
Now I didn't use the Social Security Number for our employees
because if I did, other users might see it and I might want to
limit who has access to that information.
I can then list off the rest of the fields like Make, Model,
Color, and so forth.
Order Details will also have Foreign Keys from both the
Orders table and the Cars table. We also need to have a Primary
Key. Rather than create a single Primary Key, I can use both
Foreign Keys together as a Composite key.
This Composite Key is created when both Order ID and
VIN are added to the Order Details table.
Page 5 of 8
Now by itself this is great list, but we need to
incorporate Normalization. The problem with this philosophy is
everyone has a set of normalization rules. I try to boil them
down into three rules.
The first is Atomic Data, an atom is the smallest particle
in the universe, so break your fields down into the smallest,
meaningful, most non-destructive fields possible.
For example break Name into First and Last Name,
Middle, Title, Suffix, or Nickname. You might not need all those
fields, which is what I mean by non-destructive. Don't feel you
have to break fields down just to do it.
The point is, if I have a name field like Bob Peterson, I
have to deal with the name as a whole. Break it down into first
and last and we can now sort and filter by either first or last
name.
So Address can be broken into Street, City, State, Postal
Code, Country, Region, you could even break the Postal Code
into the first five numbers and the last four for mailing purposes.
Phone Number could be broken down by Area Code, but
again this might be getting into what I called destructive, just
breaking fields down that aren't necessary.
Page 6 of 8
No matter how many rules everyone says there might
be they all deal with two concerns, Data Redundancy, and
Inconsistent Dependencies. So spend as much time as you need
during the brainstorming session and you can save a lot of
heartache later.
It's easier to change on paper than it is in the program
with 100,000 or millions of records behind it.
Page 7 of 8
The second type of relationship is One to Many; I have a
customer and I want that customer to purchase multiple items
from me, it's called return business. Same goes for my
employee, the employee either sells multiple cars or is gonna
have to find another job. Each Order can have multiple details.
So a customer can either purchase one car or hopefully a whole
fleet of them.
Now this last ones tricky. Most people think we have
one car and want to sell it only once, but actually we have one
car that we want to sell more than once. If a car comes back to
me in trade I want to be able to turn around and sell it again. So
the relationship is a One to Many.
Page 8 of 8