You are on page 1of 22

CREATE DATABASE

1. Open MS Access 2010/2013/2016. Note: Blank database depends upon Office version.
2. Click Blank Database.
3. Click the text field under File name and replace Database1 with Customer Database.

4. Click Create.
5. Close the Table by clicking X.

CREATE TABLE

1. Once you have created your database, click Create and then select Table Design.

2. Click Table Design.


3. Populate the Field Name and Data Type using the screenshot below.
Review of Data Types

Text – up to 255 characters long, A-Z, 0-9


Memo – up to 65,000+ characters, support formatted text
Numbers – counting numbers (Integers), decimals (Floating Point Values)
Data/Time – November 18, 2013 or 3:00pm, or November 18, 2013 at 3:00pm
Currency – Monetary Values
Yes/No – True/False or On/Off which are Boolean Values
AutoNumber – Automatic Counter, Starts at 1 increment by 1
OLE Object – Object Linking & Embedding, Pictures, Documents, Videos, etc.
Attachment – files you can store in your database
Hyperlink – Link to a Web Page
Calculated – Stores result of calculation ex. Netpay = Grosspay – Deductions
Lookup Wizard – looks up a value from another table

Why use Text in phone?


Because you’re not going to perform calculations
You don’t want the leading zeros to be ignored ex. 0943, it will become 943
Numbers with text ex. 8-MCDO
Sort Order
Numbers: 1, 2, 3, 4, 10, 11, 12 sorted numerically
Text: 1, 10, 11, 12, 2, 3, 4 sorted alphanumerically

4. Click Save .

5. Type tbl_customer under Table Name:


6. Click Yes to create a Primary Key.

ENTER DATA

1. Click tbl_customer and populate the field with the data you have collected from your classmates.
ENTER DATA USING FORMS

1. Click Create.
2. Click Form Wizard.

3. After clicking Form Wizard, click >>


You’ll see this.

4. After clicking >>, click Next.


5. Select Columnar and click Next.

6. Click Finish.
7. Below the Form you’ll see this line.

8. Click Next Record.

9. Enter Data in the New Record.


10. Click Refresh All.

11. Double-click tbl_customer under Tables and click Refresh All.

12. Notice the Result.


GENERATE REPORTS

1. Click Create.
2. Click Report Wizard.

3. After click >>

You’ll see this.


4. Click Next.

5. Click Next.
6. Choose.

7. Click Next.
8. Click Tabular under Layout, Landscape under Orientation, click the checkbox “Adjust the field width so all fields
fit on a page.”
9. Click Next.

10. Click Finish.


EXERCISES

Review of MS Access Fundamentals

1. Create a database name Customer with the following fields.

Select the appropriate data type.

2. Input the following data using Forms.


3. Try to sort the fields. I’ll give you the instructions later.
4. Create a report using Report Wizard.

USING QUERIES

1. Click Create and click Query Design.


2. You’ll see the image below.

3. Click Both and then Add.


4. Click and drag FirstName to the Field below. Do the same thing for the last name.

5. Click Run to see the result.


6. You’ll see the result.

7. Go back to the Design View.

8. This time double-click Phone.


9. Run the query again and see the result.

10. Go back to the Design View


11. Sort the FirstName in Ascending Order.

12. Run the Query.


13. Here’s the result.

14. Experiment by sorting the FirstName in Descending order and see the result.
15. Try to sort the LastName in Ascending order and see the result. Be sure to click the Sort in the FirstName and
then select (not sorted) before doing so.
16. Now, sort the LastName in Descending order.
17. Move the LastName in the first field and sort both LastName and FirstName.
18. Save the Query and name it CustomerQuery.

19. Close the Query and Table.


20. In the Navigation Pane, double-click the CustomerQuery to get the previous result.
21. Go to the Design View and add State in the Query.
22. Place NY under the State Field in Criteria row.

23. Run the Query and see the result.


24. Click File > Save Object As

You might also like