12
Josep Roca i Soler 1 Microsoft Access 2010 Tema 1: Basic concept Creating a data table

06 Microsoft Acces 2010 (Teoria3)

Embed Size (px)

DESCRIPTION

Teoria de Acces expicada totalmente en inglés para los más interesados en el tema de la informática, espero que os guste la aportación

Citation preview

Page 1: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 1

Microsoft Access 2010

Tema 1: Basic concept Creating a data table

Page 2: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 2

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.

Page 3: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 3

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.

Page 4: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 4

Access’ basic concepts n  Query:

¡  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.

n  Form: ¡  A form is an object designed to introduce, display and

modification of data tables.

n  Reports: ¡  A report is an object designed Un informe és l’objecte de

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

Page 5: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 5

Access’ basic concepts n  Pages:

¡  A page is a spacial web page designed to see and work with data from Internet or Intranet.

n  Macros: ¡  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.

n  Modules: ¡  A module is an object that contain personal coded using Visual

Basic. ¡  Is the way to programing in Acces.

Page 6: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 6

Access’ basic concepts

Page 7: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 7

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

the icon:

n  When you do this the toolbar change:

n  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.

Page 8: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 8

Create data tables

Page 9: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 9

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;

n  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.

n  At the bottom we have left two tiles (General and Research) to define field properties and additional features that are defining the column.

n  This is a text box with information and help.

Page 10: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 10

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.

n  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.

n  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.

Page 11: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 11

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  Click on the name of the field will be primary key. n  Click on the icon primary key on toolbar. n  You can see a key icon. If we define a composite primary key (based

in various fields), select fields simultaneously pressing the Ctrl key.

Page 12: 06 Microsoft Acces 2010 (Teoria3)

Josep Roca i Soler 12

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.