Вы находитесь на странице: 1из 12

Microsoft Access 2010

Tema 1:
Basic concept
Creating a data table

Josep Roca i Soler

Access basic concepts


n

Database:

A database is a collection of data that are organized for a


specific use.
The set of programs for managing that data is what is called the
Database Management System.
The databases have the extension .accdb Access2010 that your
computer recognizes them as Acces arxive.
Almost all management systems Database modern store and
treat information management model using relational databases
model.
In a relational database system, data is organized into tables.
The tables store information about diferents things like, the
clients of a company, or orders placed by each of them; tables
relate so from the table data customers can get information
about these commands.
Josep Roca i Soler

Access basic concepts


n

Data Table:

A data table is an object that is defined and used to store


the data.
A table containing information about a particular topic like,
for exemple, clients or orders.
The tables contain fields that store various data such as
client code, customer name, address, ... And the set of
fields for an object table is called register or line for
exemple, all the fields of a client are a register, and the
fields of another clients are another register.

Josep Roca i Soler

Access basic concepts


n

Query:

Form:

A query is an object that give you a personal vision of the data


stored on the created tables.
There are diferent kinds of queries: selection, erase, refresh,...,
but normaly the most important are the ones that you use to see
the register that complain one or more conditions.

A form is an object designed to introduce, display and


modification of data tables.

Reports:

A report is an object designed Un informe s lobjecte de


Access2010 designed to format, calculate, print and resume
selected data from a table. Usually used to present the data in
printed form.
Josep Roca i Soler

Access basic concepts


n

Pages:

Macros:

A page is a spacial web page designed to see and work with


data from Internet or Intranet.

A macro is an object defining an actions that the user wants


Access made in response to a particular event.
For example, we could create a macro to open a report in
response to the election of an element of a form.

Modules:

A module is an object that contain personal coded using Visual


Basic.
Is the way to programing in Acces.

Josep Roca i Soler

Access basic concepts

Josep Roca i Soler

Create data tables


n

To create a data table we position ourselves in the "Create" and we click on


the icon:

When you do this the toolbar change:

The Desing view allows us to create the table fields (atributs) and indicate
what type of data each field. We also can assign the primary key and other
advanced options.

Josep Roca i Soler

Create data tables

Josep Roca i Soler

Create data tables


n

In the title bar have the name of the table (as we


have not assigned a name to the table, Access has
been assigned a default name Table1;

Then, we define the grid where the columns that


make up the table, using one line for each column,
and the first line (row) grid define the first column of
the table and so on.

At the bottom we have left two tiles (General and


Research) to define field properties and additional
features that are defining the column.

This is a text box with information and help.

Josep Roca i Soler

Create data tables


n

In the first row is written the name of the first field, press ENTER to
change data type, default puts us as Text data type. If we want to
change the type of data, we click on the drop down arrow to the
right and choose otherwise.

Look how once we have some kind of data in the second column,
the bottom of the window, corresponding to the Field Properties is
activated in order to indicate more features of the field.

Then press ENTER to go to the third column of the grid. The third
column is not necessary to use. It only serves to insert a comment.
Josep Roca i Soler

10

Create data tables


n

Primary key:

Before storing the table should assign a primary key.


The primary key provides a unique value for each row in the table
and serves as an identifier records so that we know without
mistake the register.
We can not define more than one primary key, but can have a
primary key composed of more than one field.
To assign a primary key to a field, follow these steps:
n
n
n

Click on the name of the field will be primary key.


Click on the icon primary key on toolbar.
You can see a key icon. If we define a composite primary key (based
in various fields), select fields simultaneously pressing the Ctrl key.

Josep Roca i Soler

11

Create data tables


n

Data table views:

When you finalize and save the


table, you can see a list with all
the data tables:

If you do double click on a table


you see the Data table view and
we can insert registers.

Josep Roca i Soler

12

Вам также может понравиться