Professional Documents
Culture Documents
Tables:
MS Access tables are the key objects in the Access file, as they
contain the data that is stored in the database. Tables are made up of
rows and columns and allow for direct data entry into their grids.
The row is the record that contains the individual data pieces making
up an individual record. The columns, also referred to as fields,
consist of categorized information.
Queries:
A query is a request for data results, and for action on data. You can
use a query to answer a simple question, to perform calculations, to
combine data from different tables, or even to add, change, or delete
table data.
Forms*:
A form in Access is a database object that you can use to create a user
interface for a database application. A "bound" form is one that is
directly connected to a data source such as a table or query, and can
be used to enter, edit, or display data from that data source.
Reports*:
The Primary Key is the unique identifier for each record in a table.
Access will not allow duplicate entries in a Primary Key field. By
default, Access sets the first field in the table as the Primary Key
field. An example of a Primary Key would be your Social Security
Number. This is something unique about you and should not be
duplicated. To Set a Primary Key:
1) Switch to Design View
2) Position your cursor in the field you wish to set as the Primary Key
3) Click the Primary Key button on the Ribbon
Example
SELECT CustomerName, City FROM Customers
It is possible to write the INSERT INTO statement in two ways. The first
way specifies both the column names and the values to be inserted:
UPDATE Syntax
The UPDATE statement is used to modify the existing records in a table.
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
DELETE Syntax
The DELETE statement is used to delete existing records in a
table.
DELETE FROM table_name WHERE condition;