Understanding Objects In Access 2007
September 7th 2011 Posted at Training
599 Comments
Tables
Tables are the containers used by Microsoft Access to store information. Each Access table is very much like an Excel worksheet and consists of rows and columns. In a really simple database, a single table may be all that is required but, more typically, a database will contain several related tables. For databases to work efficiently, each table it contains should store only one type of information. For example, you might have one table for storing client information, another for storing information about products, and so forth.
Fields (Columns)
Each column in a table is known as a field. When designing tables, it is important to define a field for each bit of information you will need to store and not to lump separate pieces of information together in a single field. As a general rule, having more fields gives you greater flexibility in data retrieval. Thus, for example, if you define three fields called “Title”, “FirstName” and “LastName” rather than a single field called “Name”, you will be able to combine them either to form both a salutation and a full name.
Records (Rows)
Each row in a table is called a record. A record represents a single piece of information on a given topic. Thus, if the table holds student grades, each record will constitute the grade achieved by a particular student in a particular exam. In a client table, each record will contain details about an individual client, and so forth.
Primary Key Fields
In order for the information stored in a database to be useful and accurate, it is important to avoid duplicate information since this will tend to increase the occurrence of errors. Each record in a database should be uniquely identifiable. Thus, for example, if we have a table containing student information and there are two students called “John Smith” living at the same address, we need to be able to distinguish between them. The recommended technique is to define a field within each table which will always contain a unique value. This field is referred to as the primary key. So, in our student table example, we would create a “StudentID” field and assign each student a unique student ID. When designing tables in Microsoft Access, this is achieved by setting the field type to “AutoNumber”, enabling Access to automatically generate a unique value for each new record created in the table.
Relationships
Although the information within a database is held in separate tables, the complete system which this information represents is a unified whole and there are associations between the information in all the various tables. Microsoft Access is called a relational database management system because it allows users to create relationships between the various tables. Relationships lend efficiency to databases by preventing the creation of redundant data. For example, in a client database, the table containing client information would be related to the table(s) holding client invoices. When creating the invoice, information from all the related tables can therefore be included.
The The writer of this article is a training consultant with OnSiteTrainingCourses.Com, an independent computer training company offering Microsoft Access Classes at their central London training centre.

