Databases and Key Concepts
Databases and Key Concepts
The Microsoft Access window is the interface you see when you open an Access database. It
consists of several important components that help you navigate and work within the database.
Here are the key components:
Microsoft Access allows you to work with different views depending on what you are trying to do
with the data. Common views include:
○ For a table, this is where you set up the fields (e.g., Name, StudentID, Age) and
define their data types (e.g., Text, Number, Date/Time).
○ To switch to Design View, click the View button on the Ribbon and select
Design View.
3. Form View:
○ This is used for entering and viewing records in a user-friendly way. It provides a
form layout that can be customized with buttons, text boxes, and labels to make
data entry easier.
○ You can switch to Form View from the Create tab by creating a form.
4. Report View:
○ This view allows you to view the data in a formatted way suitable for printing.
Reports are designed to display summarized data in a neat layout.
○ To change to Report View, select the Report object from the Navigation Pane
and choose Report View.
5. Layout View:
○ A combination of Design View and Form View. You can see the layout of your
form or report and make changes to the design while viewing the data.
○ It is useful when you want to adjust the design of forms or reports while
interacting with actual data.
A table is a key component of a database in Access. It holds the actual data. To create a table,
follow these steps:
Once you have created a table, you might need to modify it or its contents. Here are some ways
to modify tables and data:
In a database, an object is a component that helps store, organize, and manipulate data.
These objects allow us to structure, view, and work with the data efficiently. The primary
database objects in a database management system (DBMS) like Microsoft Access are:
1. Tables:
○ Tables are used to store data in rows and columns. Each row represents a
record, and each column represents a field or attribute of that record.
○ Example: A table called Students could have fields like StudentID, Name, Age,
and Grade.
2. Queries:
○ Queries are used to search and retrieve data from one or more tables based on
specific criteria. Queries can also be used to update, delete, or insert data.
○ Example: A query could be created to find all students who have grades above
80.
3. Forms:
○ Forms are used to enter, display, or edit data in a more user-friendly interface.
They make data entry easier and more organized.
○ Example: A form could be created for entering new student information, where
the user fills in details like name, age, and grade.
4. Reports:
○ Reports are used to present data in a formatted way, often for printing. Reports
can summarize and organize data to provide insights or print-friendly versions of
the database information.
○ Example: A report could be generated to list all students’ grades and ages in a
neat, printed format.
5. Macros:
○ Macros are used to automate repetitive tasks in the database. They can run a
series of actions automatically, such as opening forms, running queries, or
sending emails.
6. Modules:
○ Modules are collections of VBA (Visual Basic for Applications) code. These are
used to create custom functions and automate complex tasks in the database.
In Microsoft Access, when creating tables, you must define the data types for each field. A data
type defines the kind of data that can be stored in a particular field. Some common data types
in Access are:
HEARTFULNESS INTERNATIONAL SCHOOL, OMEGA BRANCH 2024 - 25
A Primary Key is a field or a combination of fields in a database table that uniquely identifies
each record in the table. The primary key ensures that no two records have the same value for
the primary key field(s). It helps maintain data integrity by preventing duplicate records.
● Uniqueness: Each value in the primary key field must be unique for every record.
● Non-null: The primary key cannot have a null value (it must always contain a value).
HEARTFULNESS INTERNATIONAL SCHOOL, OMEGA BRANCH 2024 - 25
● Single or Composite: A primary key can consist of a single field (e.g., StudentID) or
multiple fields (e.g., FirstName and LastName) combined.
Example:
● In a Students table, the StudentID field could be the primary key because each student
has a unique ID number.
○ StudentID (Primary Key) | Name | Age | Grade
○ 1 | John Smith | 12 | A
○ 2 | Sarah Johnson | 13 | B