Data Manipulation  «Prev  Next»

Lesson 3Data types
ObjectiveDescribe the field data types available in Access.

Access Data types

OK, so you have learned how to create a table and how to display the Table Design view--now you can use the table Design view to refine field definitions. Why, you ask, might you want to do that? The Table Design view enables you to change a field’s data type and to refine the formatting.
Let’s talk a little more about data types. Access selects a data type for you when you enter the first piece of data for a field in Datasheet view. Usually, this is the correct data type.
Using the correct data type for a field is the first step toward preventing incorrect input. For instance, if you set a field’s data type to number, Access displays an error if the user tries to enter anything but a number. There are other methods for controlling data entry, and we’ll explore some of these as we go, but this is the simplest. The following table tells you about each data type:
Data Type
Allowed Data
TextLetters, numbers, punctuation, spaces, and special characters. A text field holds up to 255 characters.
MemoLike a text field, but longer—up to 65,535 characters.
NumberNumbers only--decimal points are allowed, but no other non-numerical characters.
Date/TimeDates and times in a variety of standard formats.
CurrencyNumbers with a currency sign in front of them. Access will add the currency sign when the data type is Currency.
AutoNumberA number assigned by Access. Starts at 1 for the first record, and increments upward. Primary key fields created by Access are always AutoNumber fields.
Yes/NoOne of two defined responses: it can be Yes or No, or user defined choices such as True/False, On/Off, Male/Female. Yes/No data types appear as a checkbox in each record. Toggle the value by clicking the check box or pressing the spacebar when the field is selected.
OLE ObjectA picture, sound, or some other object contained in an electronic file.
HyperlinkHyperlink addresses such as e-mail addresses and URLs (Web site addresses).
Lookup WizardThis is not technically a data type, but it runs a wizard that allows you to create a drop-down list so that the user can choose from a list of possibilities. This is often used to choose a value from another field in another table.
The next lesson will cover how to edit a field’s data type.
SEMrush Software 3 SEMrush Banner 3