Class Notes 9
Class Notes 9
Microsoft Access is a database management system (DBMS) that allows you to store,
manage, and analyze large amounts of data. Unlike spreadsheets, which are ideal for
individual or small sets of data, Access is designed for more complex databases,
enabling users to organize data in a structured way and retrieve it efficiently using
queries. This class note will introduce you to the key components and features of
Access, helping you get started with creating and managing databases.
When you open Microsoft Access, you are presented with a database file (.accdb). The
main areas of the interface include:
• Ribbon: At the top of the screen, the Ribbon contains tabs such as "Home",
"Create", "External Data", and "Database Tools", which offer tools and commands
for creating and managing databases.
• Navigation Pane: On the left side of the screen, the Navigation Pane displays all
objects in the current database, such as tables, queries, forms, and reports.
• Workspace: The central area where you create and view different database
objects (tables, queries, forms, etc.).
2. Creating a Database
1. Open Access and select "Blank Database" from the available templates.
After creating the database, you can begin adding data through tables, which are the
core objects in Access.
3. Creating Tables
Tables are where data is stored in Access. They are made up of rows (records) and
columns (fields).
• Creating a Table: To create a new table, click the "Create" tab, then select
"Table". This will open a new table in "Datasheet View", where you can start
entering data directly.
• Defining Fields: Each column in a table is called a field. When creating a table,
define the field name (e.g., "CustomerID", "FirstName", "Age") and the data type
(e.g., Text, Number, Date/Time). To define fields and their data types, switch to
"Design View".
o Primary Key: A unique identifier for each record (e.g., CustomerID). This
is crucial for ensuring data integrity.
• Saving the Table: After defining the table’s structure, click Save (or Ctrl + S) and
give your table a name.
• Datasheet View: This is where you enter actual data into the table. In this view,
rows represent individual records, and columns represent fields.
• Form View: Forms provide a user-friendly interface for entering and viewing data.
To create a form, click on the "Create" tab and select "Form". This automatically
generates a form based on the current table.
Forms are useful for entering data without the need to work directly with the table's raw
structure.
5. Queries
Queries allow you to extract and analyze specific data from your tables using a
structured approach. You can create simple or complex queries based on multiple
criteria.
• Creating a Query: To create a query, go to the "Create" tab and select "Query
Design". Then choose the tables you want to query from. After selecting the
tables, you can:
o Set Criteria: Define conditions (e.g., show all records where "Age" is
greater than 30).
• Running the Query: Once you’ve built your query, click "Run" to execute the
query and view the results.
7. Reports
Reports allow you to format and print your data in a structured way. You can create
reports based on the data from tables or queries.
• Creating a Report: To create a report, go to the "Create" tab and select "Report".
You can choose to generate a report automatically or customize it in Design
View, where you can adjust the layout, grouping, and formatting of the report.
• Grouping Data: In the report’s Design View, you can group data by fields such as
date or category, which helps in organizing large datasets for presentation or
printing.
• Backing Up: Always back up your database regularly. Access provides an option
to save a copy of your database under "File" > "Save As".
• Security: Access allows you to set password protection for your database under
"File" > "Info" > "Encrypt with Password".
Conclusion
Microsoft Access is a powerful tool for managing large sets of data, making it an
excellent choice for businesses, organizations, and researchers who need to store and
analyze information in an efficient manner. By understanding how to create tables, set
relationships, write queries, and design reports, you can unlock the full potential of
Access to manage and analyze data.