Tutorial Point MS Access
Tutorial Point MS Access
The data type determines the
kind of the values that users
can store in any given field.
Each field can store data
consisting of only a single data
type.
Here are some of the most
common data types you will find
used in a typical Microsoft
Access database.
Type of
Descripti
Data Size
on
Text or
combinations
of text and
numbers,
including
Up to 255
Short Text numbers that
characters.
do not
require
calculating
(e.g. phone
numbers).
Lengthy text
or
Long Text combinations Up to 63, 999
of text and characters.
numbers.
Numeric 1, 2, 4, or 8
data used in bytes (16 bytes
Number
mathematical if set to
calculations. Replication ID).
Date and
time values
Date/Time for the years 8 bytes
100 through
9999.
Currency Currency 8 bytes
values and
numeric data
used in
mathematical
calculations
involving
data with one
to four
decimal
places.
A unique
sequential
(incremented
by 1) number
or random
number 4 bytes (16
AutoNumber assigned by bytes if set to
Microsoft Replication ID).
Access
whenever a
new record is
added to a
table.
Yes/No Yes and No 1 bit.
values and
fields that
contain only
one of two
values
(Yes/No,
True/False,
or On/Off).
Descripti
Data Size
on
Types
Files, such as
digital
photos.
Multiple
files can be
attached per Up to about 2
Attachment
record. This GB.
data type is
not available
in earlier
versions of
Access.
OLE objects
can store
pictures,
If you use previous versions of
Access, you will notice a
difference for two of those
data types.
In Access 2013, we now have
two data types short text and
long text. In previous versions
of Access these data types
were called text and memo.
The text field is referred to as
short text and your memo
field is now called long text.
Here are some of the other more
specialized data types, you can
choose from in Access.
These are all the different data
types that you can choose from
when creating fields in a
Microsoft Access table.
Note!
Object Linking and Embedding (OLE) is a
proprietary technology developed by
Microsoft that allows embedding and
linking to documents and other objects.
MS Access - Create Tables
We now need to
make ProjectID a primary key
for this table, so let us
select ProjectID and click
on Primary Key option in the
ribbon.
You can now see a little key icon
that will show up next to that
field. This shows that the field is
part of the tables primary key.
Let us save this table and give
this table a name.
Click Ok and you can now see
what this table looks like in the
Datasheet View.