Access 2010 Tutorial Setup
Access 2010 Tutorial Setup
Access 2010 Tutorial Setup
This tutorial is an introduction to using Microsoft Access 2010. In this tutorial a database with 4 tables will be created, data added to these tables, queries created to obtain information from the database, and reports to display information from the database. The database being constructed is for a basic sales system and contains the following tables and attributes with the stated data types and sizes: Table Customer Attribute CustomerID CustomerFirstName CustomerLastName CustomerAddress CustomerSuburb CustomerCity CustomerPostCode CustomerPhoneNumber InventoryID InventoryName InventoryDescription EmployeeID EmployeeFirstName EmployeeLastName EmployeeExtension SaleID CustomerID InventoryID EmployeeID SaleDate SaleQuantity SaleUnitPrice Data Type AutoNumber Text Text Text Text Text Text Text AutoNumber Text Text AutoNumber Text Text Text AutoNumber Number Number Number DateTime Number Currency Size 50 50 50 50 50 4 15 Required Y Y Y Y N Y N N Y Y N Y Y Y N
Inventory
50 255
Employee
50 50 4
Sale
Notice that the names of each attribute are typed with no spaces between the words, but each new word starts with a capital. This is called CamelCase. Dont use spaces in field names because different database programmes treat these differently and it can also cause problems with creating queries later. Also notice that each attribute name has the table name in front of it. This is not always done, but is useful when the same field name may be used for different tables. For example, this database also has an Employee table where the employee name is included. By including the table name in front of the field name, it is easier to determine which field is being referred to when using queries and reports.
Table Customer
CustomerID
Attribute
CustomerFirstName CustomerLastName CustomerAddress CustomerSuburb CustomerCity CustomerPostCode CustomerPhoneNumber
1 2 3 4 5
123 Dove Street Hillside 43 Sweet Road Riverside PO Box 780 PO Box 8249 9 Castle Grove
Inventory
InventoryID InventoryName InventoryDescription
1 2 3 4 5 Employee
EmployeeID
Phillips
EmployeeFirstName
EmployeeLastName
EmployeeExtension
1 2 3 4 5 Sale
SaleID
CustomerID
InventoryID
EmployeeID
SaleDate
SaleQuantity
SaleUnitPrice
1 2 3 4 5
1 1 2 4 3
1 3 2 4 4
2 5 1 4 2
3 1 4 1 5