Computer Assignment #2: Company Database Guide Customer Table: Data Dictionary ------------------------------- Field Name Data Type CustomerID Autonumber CustomerName Text (Properties=20) PhoneNo Text (Properties=13) City Text (Properties=15) Product Table: Data Dictionary ------------------------------ Field Name Data Type ProductID Autonumber Product Name Text (Properties=15) Price Currency (Properties=Standard) ExpiryDate Date/Time (Properites=Medium Date) Transaction Table: Data Dictionary ---------------------------------- Field Name Data Type TransactionID Autonumber CustomerID Lookup Wizard ProductID Lookup Wizard Quantity Number (Properties=Integer) TransactionDate Date/Time (Properties=Medium Date) Section I: TablesTask 1: Open MS Access From the Start menu choose All Programs, MS Office, MS Access 2007. Task 2: Blank Database Under the heading New Blank Database click on Blank Database. Task 3: Choose Folder and File Name On the right side of the screen you can choose which folder that you want to save the database in. You can also choose the File Name of the database. Here the filename is Company.accdb. The file extension for MS Access 2007 database files is .accdb. Then click Create. Task 4: Create the Customer Table When you first create a table in MS Access 2007 the table will be in Datasheet View. We want to create the table in Design View. Click on the down arrow under View on the left side of the screen and choose Design View. The Save As dialog box will pop up and you can type the name of the table which is the Customer table. Click OK. Enter the field names and data types for each of the Customer table fields as shown below. Notice that CustomerID has a key to the left of it. We do not have to enter the key manually because we created the table using Design View. For each field data type you may need to change the property. Check with the tables listed at the beginning of this guide to determine the field properties. In the example below the Field Properties for CustomerName was Field Size=20. You will need to make sure the table is saved by either clicking on the save icon or using the shortcut key Ctrl+S. Finally, you can close the table by click on the x on the left side of the table. It is a good idea to keep the table closed because some tasks cannot be completed with the tables open. Task 5: Create the Product Table Select the Create tab and click on Table. Follow the same steps used to create the Customer table. Click on the down arrow under View and select Design View. For the Table Name type Product and click OK to save the table. Enter the field names and data types for each of the Customer table fields as shown. Refer to the Product table listed at the beginning of this guide. Note that the properties for the Currency data type is Standard and the properties for the ExpiryDate is Medium Date. Save the table. Task 6: Create the Transaction Table .