Introduction to Microsoft Access
Microsoft Access is a Database Management System (DBMS) used to store, manage, and analyze large
amounts of
structured data. It is part of the Microsoft Office suite and is widely used for business
applications.
Unlike Excel, which is used for calculations and analysis, Access is designed for handling
relational databases
with multiple tables.
Key features of Microsoft Access include:
- Creating and managing databases
- Tables to store structured data
- Queries to filter and analyze data
- Forms for user-friendly data entry
- Reports for printing and sharing data
- Relationships between multiple tables
Features of MS Access
Microsoft Access is a powerful Database Management System (DBMS)
that helps users store, organize, manage, and analyze data efficiently.
It combines the power of a database with a user-friendly interface, making it suitable
for beginners as well as professionals.
Core Features of MS Access
| Feature |
Description |
Use Case |
| Tables |
Store data in rows and columns |
Student records, employee data |
| Queries |
Retrieve and filter specific data |
Find students with marks above 90 |
| Forms |
User-friendly interface for data entry |
Data entry screens for staff |
| Reports |
Generate formatted output for printing |
Result sheets, invoices |
| Relationships |
Connect multiple tables |
Link students with courses |
| Macros |
Automate repetitive tasks |
Auto-open forms on startup |
| VBA |
Advanced programming support |
Custom logic and automation |
| Data Import/Export |
Transfer data between applications |
Import Excel data |
| Security |
Protect database with passwords |
Restrict unauthorized access |
Feature Explanation
- Tables are the foundation where all data is stored.
- Queries help you search and analyze data quickly.
- Forms make data entry easy and user-friendly.
- Reports present data in a professional format.
- Relationships reduce data duplication.
- Macros & VBA automate tasks and improve efficiency.
Example Scenario
| Task |
Feature Used |
| Store student details |
Table |
| Search top students |
Query |
| Enter new student data |
Form |
| Print report card |
Report |
Complete Example
Example: Student Database
Tables:
- Students (ID, Name, Class)
- Marks (StudentID, Subject, Marks)
Query:
- Show students with marks > 80
Form:
- Student Entry Form
Report:
- Student Result Report
Best Practices
- Use proper table structure with primary keys.
- Avoid duplicate data by using relationships.
- Use queries instead of manual searching.
- Create forms for easy data entry.
- Use reports for professional output.
Uses of MS Access
Microsoft Access is widely used to store, manage, and analyze data
in an organized way. It is suitable for small to medium-sized applications
where efficient data handling is required.
It is commonly used in schools, offices, businesses, and personal projects
to simplify data management tasks.
Common Uses of MS Access
| Area |
Usage |
Example |
| Education |
Manage student records |
Attendance, marks, report cards |
| Business |
Store customer and sales data |
Customer database, billing system |
| Inventory |
Track stock and products |
Product quantity, stock alerts |
| Finance |
Maintain financial records |
Expenses, income tracking |
| HR Management |
Employee record management |
Salary, attendance, details |
| Personal Use |
Organize personal data |
Contacts, daily expenses |
Real-Life Applications
- School Management System – Manage students, teachers, and results.
- Billing Software – Generate invoices and maintain sales records.
- Library Management – Track books, issue, and return records.
- Inventory System – Monitor stock levels and product details.
- Customer Database – Store and manage client information.
Example Scenario
| Problem |
Solution using Access |
| Managing student records manually |
Create a database with tables and forms |
| Finding specific data takes time |
Use queries to filter data instantly |
| Need printed reports |
Generate reports automatically |
Advantages of Using MS Access
- Easy to use for beginners
- Reduces manual work
- Improves data accuracy
- Saves time with automation
- Provides organized data storage
Complete Example
Example: School Database
Tables:
- Students (ID, Name, Class)
- Teachers (ID, Name, Subject)
- Marks (StudentID, Subject, Marks)
Uses:
- Store student data
- Track performance
- Generate report cards
Best Practices
- Design your database before creating it.
- Use proper table relationships.
- Keep data clean and avoid duplication.
- Use forms for data entry.
- Use reports for presentation.
MS Access Interface Overview
The Microsoft Access interface is designed to help users easily create, manage,
and interact with databases using a graphical environment.
Understanding the interface is important before working with tables, queries,
forms, and reports.
Main Components of MS Access Interface
| Component |
Description |
Function |
| Title Bar |
Topmost bar of the window |
Displays database name |
| Quick Access Toolbar |
Small toolbar at top-left |
Contains shortcuts like Save, Undo |
| Ribbon |
Main command area |
Contains tabs like Home, Create, External Data |
| Navigation Pane |
Left-side panel |
Shows all database objects |
| Work Area |
Central workspace |
Where tables, forms, queries open |
| Status Bar |
Bottom bar |
Shows status and view options |
Interface Explanation
- Ribbon contains all tools required to work with database objects.
- Navigation Pane helps you quickly switch between tables, queries, and
forms.
- Work Area is where you perform all actions like editing data.
- Quick Access Toolbar saves time with frequently used commands.
Tabbed Interface
| Tab |
Purpose |
| Home |
Basic operations like copy, paste, sort, filter |
| Create |
Create tables, queries, forms, reports |
| External Data |
Import/export data |
| Database Tools |
Advanced tools like relationships, macros |
Example Workflow
| Step |
Action |
| 1 |
Open MS Access |
| 2 |
Create a new database |
| 3 |
Use "Create" tab to add a table |
| 4 |
View it in Navigation Pane |
Visual Layout (Conceptual)
-----------------------------------------------------
| Title Bar |
-----------------------------------------------------
| Quick Access Toolbar |
-----------------------------------------------------
| Ribbon (Tabs: Home | Create | External Data ...) |
-----------------------------------------------------
| Navigation Pane | Work Area |
| | (Tables / Forms / Queries) |
-----------------------------------------------------
| Status Bar |
-----------------------------------------------------
Best Practices
- Familiarize yourself with the Ribbon tabs.
- Use Navigation Pane to manage objects efficiently.
- Save your work regularly using Quick Access Toolbar.
- Organize database objects with proper naming.
🎯 Practice Task
- Identify all parts of the MS Access interface.
- Open Access and explore each tab.
- Create a new database and locate it in Navigation Pane.
- Try using the Create tab to add a table.
Create a Database in MS Access
A database is a structured collection of data. In Microsoft Access,
creating a database is the first step before working with tables, queries,
forms, and reports.
MS Access allows you to create a blank database or use
pre-designed templates.
Steps to Create a New Database
| Step |
Action |
| 1 |
Open Microsoft Access |
| 2 |
Click on Blank Database |
| 3 |
Enter a file name for your database |
| 4 |
Choose a location to save the file |
| 5 |
Click Create |
Understanding Database File
- MS Access database files are saved with .accdb extension.
- Example:
school_database.accdb
- This file contains all tables, queries, forms, and reports.
Creating Database Using Template
MS Access provides ready-made templates for common tasks.
- Click on a template (e.g., Student, Inventory, Contacts)
- Enter file name
- Click Create
Example Workflow
| Task |
Action in Access |
| Create student database |
Choose Blank Database → Name it "StudentDB" |
| Start working |
Add tables like Students, Marks |
Visual Steps (Conceptual)
Step 1: Open MS Access
Step 2: Select "Blank Database"
Step 3: Enter File Name
Step 4: Click "Create"
Result → Database Ready to Use
Complete Example
Database Name: SchoolDB.accdb
Tables:
- Students (ID, Name, Class)
- Teachers (ID, Name, Subject)
Next Step:
- Create tables and define fields
Best Practices
- Use meaningful database names (e.g., SchoolDB, InventoryDB).
- Save your database in an organized folder.
- Avoid using spaces or special characters in file names.
- Take backup of important databases regularly.
🎯 Practice Task
- Create a new blank database.
- Name it
StudentDB.accdb.
- Save it in your computer.
- Explore the interface after creation.
Save & Open Database in MS Access
Saving and opening a database are essential operations in Microsoft Access.
Proper saving ensures that your data is secure, while opening allows you
to continue working on existing databases.
Saving a Database
When you create a database in MS Access, it is automatically saved.
However, you should save changes regularly while working.
Steps to Save a Database
| Method |
Action |
| Using Toolbar |
Click the Save icon on Quick Access Toolbar |
| Keyboard Shortcut |
Press Ctrl + S |
| Menu Option |
Click File → Save |
Save As (Creating a Copy)
The Save As option allows you to create a duplicate
of your database with a new name or location.
- Go to File → Save As
- Choose new name or location
- Click Save
Opening an Existing Database
You can open a previously saved database to continue your work.
Steps to Open a Database
| Step |
Action |
| 1 |
Open Microsoft Access |
| 2 |
Click on Open |
| 3 |
Select your database file (.accdb) |
| 4 |
Click Open |
Opening Recent Databases
- Go to File → Recent
- Select your recently used database
File Types in MS Access
| Extension |
Description |
.accdb |
Default database file format |
.mdb |
Older Access database format |
Example Workflow
| Task |
Action |
| Save student database |
Press Ctrl + S |
| Open saved database |
File → Open → Select file |
| Create backup |
Use Save As |
Complete Example
Database: StudentDB.accdb
Actions:
- Save changes using Ctrl + S
- Create backup as StudentDB_Backup.accdb
- Open database later to continue work
Best Practices
- Save your work frequently to avoid data loss.
- Keep backup copies using "Save As".
- Store databases in organized folders.
- Avoid editing the same file on multiple systems without backup.
🎯 Practice Task
- Create a database and save it.
- Use Ctrl + S to save changes.
- Create a backup using Save As.
- Close and reopen the database.
What is a Table in MS Access?
A table is the most basic and important component of a database.
It is used to store data in an organized format using rows and columns.
Each table represents a specific type of data, such as students, employees,
or products.
Structure of a Table
| Element |
Description |
Example |
| Field (Column) |
Represents a category of data |
Name, Age, Class |
| Record (Row) |
Represents a complete set of data |
One student's details |
| Cell |
Intersection of row and column |
Value like "Rahul" |
Example Table
| ID |
Name |
Class |
| 1 |
Rahul |
10 |
| 2 |
Simran |
9 |
Key Points
- Tables store all data in a database.
- Each column has a specific data type.
- Each row represents a unique record.
- Tables can be connected using relationships.
Real-Life Example
| Scenario |
Table Use |
| School |
Student Table (Name, Class, Roll No) |
| Shop |
Product Table (Name, Price, Quantity) |
| Office |
Employee Table (ID, Name, Salary) |
Complete Example
Table: Students
Fields:
- ID (Number)
- Name (Text)
- Class (Number)
Records:
1, Rahul, 10
2, Simran, 9
Best Practices
- Use clear and meaningful field names.
- Do not store multiple values in one field.
- Keep data organized and structured.
- Avoid duplicate records.
🎯 Practice Task
- Create a table named
Students.
- Add fields: ID, Name, Class.
- Insert at least 3 records.
- Identify fields and records.
Create a Table in MS Access
Creating a table is the first step in storing data inside a database.
In MS Access, you can create tables using different methods depending
on your requirement.
Methods to Create a Table
| Method |
Description |
Best For |
| Datasheet View |
Create table by directly entering data |
Beginners |
| Design View |
Define fields and data types manually |
Advanced users |
Method 1: Create Table using Datasheet View
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Table |
| 3 |
A new table opens in Datasheet View |
| 4 |
Enter data directly in rows and columns |
| 5 |
Rename fields by double-clicking column header |
| 6 |
Press Ctrl + S and give table name |
Method 2: Create Table using Design View
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Table Design |
| 3 |
Enter Field Name |
| 4 |
Select Data Type |
| 5 |
Set Primary Key (optional but recommended) |
| 6 |
Save the table |
Example Table Design
| Field Name |
Data Type |
| ID |
AutoNumber |
| Name |
Short Text |
| Class |
Number |
Datasheet vs Design View
| Feature |
Datasheet View |
Design View |
| Ease of Use |
Easy |
Moderate |
| Control |
Limited |
Full control |
| Best For |
Quick data entry |
Proper database design |
Complete Example
Table Name: Students
Fields:
- ID (AutoNumber)
- Name (Short Text)
- Class (Number)
Steps:
- Create table using Design View
- Add fields and data types
- Save table
- Enter data in Datasheet View
Best Practices
- Always define correct data types.
- Use Design View for better control.
- Set a Primary Key to uniquely identify records.
- Use meaningful field names.
🎯 Practice Task
- Create a table using Datasheet View.
- Create another table using Design View.
- Add fields: ID, Name, Class, Marks.
- Set ID as Primary Key.
Data Types in MS Access
Data types define the kind of data that can be stored in a table field.
Choosing the correct data type is important for accurate data storage
and efficient database performance.
Common Data Types in MS Access
| Data Type |
Description |
Example |
| Short Text |
Stores text up to 255 characters |
Name, City |
| Long Text |
Stores large text (paragraphs) |
Description, Remarks |
| Number |
Stores numeric values |
Age, Marks |
| Date/Time |
Stores date and time |
01-01-2025 |
| Currency |
Stores money values |
₹5000 |
| AutoNumber |
Automatically generates unique numbers |
1, 2, 3... |
| Yes/No |
Stores True/False values |
Yes/No, True/False |
| Attachment |
Stores files like images or documents |
Photo, PDF |
| Hyperlink |
Stores web links |
www.example.com |
Explanation of Data Types
- Short Text is used for names and small text values.
- Number is used for calculations.
- AutoNumber is best for primary keys.
- Date/Time helps track events and records.
- Yes/No is useful for status fields.
Example Table with Data Types
| Field Name |
Data Type |
Example Value |
| ID |
AutoNumber |
1 |
| Name |
Short Text |
Neoaspire |
| Class |
Number |
10 |
| Fees |
Currency |
₹2000 |
| Admission Date |
Date/Time |
01-04-2025 |
Choosing the Right Data Type
| Data Type |
When to Use |
| Short Text |
Names, phone numbers (not for calculation) |
| Number |
Marks, age, calculations |
| Currency |
Money values |
| AutoNumber |
Unique ID field |
Common Mistakes
- Using Number for phone numbers (should be Short Text).
- Not setting AutoNumber for ID field.
- Using wrong data type causing errors in queries.
- Storing large text in Short Text instead of Long Text.
Complete Example
Table: Students
Fields:
- ID → AutoNumber
- Name → Short Text
- Class → Number
- Fees → Currency
- AdmissionDate → Date/Time
Best Practices
- Always choose the correct data type before entering data.
- Use AutoNumber for primary key fields.
- Use Currency instead of Number for money values.
- Avoid changing data types after data entry.
🎯 Practice Task
- Create a table with at least 5 fields using different data types.
- Add fields: Name, Age, Fees, Admission Date.
- Assign correct data types to each field.
- Identify wrong data types and correct them.
Primary Key in MS Access
A Primary Key is a field (or combination of fields) that
uniquely identifies each record in a table.
It ensures that no two records have the same value, making data accurate
and preventing duplication.
Key Characteristics of Primary Key
- Each record must have a unique value.
- Primary Key cannot be NULL (empty).
- There can be only one primary key per table.
- It helps in creating relationships between tables.
Example Table
| ID (Primary Key) |
Name |
Class |
| 1 |
Rahul |
10 |
| 2 |
Simran |
9 |
Types of Primary Keys
| Type |
Description |
Example |
| Single Field Key |
One field used as primary key |
ID |
| Composite Key |
Combination of multiple fields |
StudentID + Subject |
How to Set Primary Key
Steps (Design View)
| Step |
Action |
| 1 |
Open table in Design View |
| 2 |
Select the field (e.g., ID) |
| 3 |
Click Primary Key button in Ribbon |
| 4 |
A key icon appears next to the field |
AutoNumber as Primary Key
The most common way to create a primary key is by using
AutoNumber, which automatically generates unique values.
Field: ID
Data Type: AutoNumber
Primary Key: Yes
Real-Life Example
| Scenario |
Primary Key |
| School |
Roll Number |
| Bank |
Account Number |
| Employee System |
Employee ID |
Why Primary Key is Important
- Prevents duplicate records
- Ensures data integrity
- Helps link tables (relationships)
- Improves database performance
Common Mistakes
- Not setting any primary key ❌
- Using duplicate values ❌
- Using editable fields like Name as primary key ❌
- Not using AutoNumber for unique ID ❌
Complete Example
Table: Students
Fields:
- ID → AutoNumber (Primary Key)
- Name → Short Text
- Class → Number
Result:
Each student has a unique ID
Best Practices
- Always use a primary key in every table.
- Prefer AutoNumber for simplicity.
- Keep primary key stable (do not change frequently).
- Avoid using meaningful data like names as keys.
🎯 Practice Task
- Create a table with ID as primary key.
- Use AutoNumber for ID field.
- Try inserting duplicate values (observe restriction).
- Create a composite key example.
Relationships in MS Access
A relationship is a connection between two or more tables
based on a common field. It allows data to be shared and linked efficiently.
Relationships help reduce data duplication and maintain data consistency
across the database.
Why Relationships are Important
- Eliminate duplicate data
- Improve data accuracy
- Make database more organized
- Enable powerful queries and reports
Types of Relationships
| Type |
Description |
Example |
| One-to-One |
One record in Table A matches one record in Table B |
One student → One ID card |
| One-to-Many |
One record in Table A matches many records in Table B |
One student → Many marks |
| Many-to-Many |
Many records in Table A match many in Table B |
Students ↔ Subjects |
Example Tables
| Students Table |
Marks Table |
| ID (Primary Key) |
MarkID (Primary Key) |
| Name |
StudentID (Foreign Key) |
| Class |
Subject, Marks |
Primary Key vs Foreign Key
| Key Type |
Description |
| Primary Key |
Unique identifier in main table |
| Foreign Key |
Field in another table that links to primary key |
How to Create Relationships
Steps
| Step |
Action |
| 1 |
Go to Database Tools tab |
| 2 |
Click Relationships |
| 3 |
Add required tables |
| 4 |
Drag Primary Key to matching field in another table |
| 5 |
Click Create |
Referential Integrity
Referential integrity ensures that relationships between tables remain consistent.
- You cannot add a record in child table without matching parent record
- You cannot delete a parent record if related child records exist
Visual Diagram (Conceptual)
Students Table Marks Table
-------------- ------------
ID (PK) -----------→ StudentID (FK)
Name Subject
Class Marks
Real-Life Example
| Scenario |
Relationship |
| School |
One student → Many subjects |
| Library |
One member → Many books issued |
| Shop |
One customer → Many orders |
Common Mistakes
- Not setting primary key before creating relationship ❌
- Using different data types for related fields ❌
- Not enforcing referential integrity ❌
- Creating unnecessary relationships ❌
Complete Example
Tables:
Students (ID, Name)
Marks (MarkID, StudentID, Subject, Marks)
Relationship:
Students.ID → Marks.StudentID
Result:
One student can have multiple marks
Best Practices
- Always define primary key before relationships.
- Use same data type for related fields.
- Enable referential integrity.
- Keep relationships simple and meaningful.
🎯 Practice Task
- Create two tables: Students and Marks.
- Set primary key in Students table.
- Add foreign key in Marks table.
- Create a one-to-many relationship.
What is a Query in MS Access?
A query is used to retrieve specific data from one or more tables
based on given conditions.
It allows you to search, filter, sort, and analyze data
without modifying the original data stored in tables.
Why Queries are Used
- Find specific records quickly
- Filter data based on conditions
- Perform calculations
- Combine data from multiple tables
Example Table
| ID |
Name |
Marks |
| 1 |
Rahul |
85 |
| 2 |
Simran |
92 |
| 3 |
Aman |
70 |
Query Example
Suppose you want to find students who scored more than 80 marks.
Condition:
Marks > 80
Result:
Rahul (85)
Simran (92)
Types of Queries
| Query Type |
Description |
| Select Query |
Retrieves data from tables |
| Action Query |
Modifies data (Insert, Update, Delete) |
| Parameter Query |
Asks user for input |
| Cross-tab Query |
Summarizes data in table format |
How Query Works
- Select table(s)
- Choose fields
- Apply conditions (criteria)
- View filtered result
Visual Concept
Table → Apply Condition → Result
Students Table → Marks > 80 → Filtered Records
Real-Life Examples
| Scenario |
Query Use |
| School |
Find top students |
| Shop |
Find products with low stock |
| Bank |
Find customers with balance above ₹50,000 |
Complete Example
Query Name: HighMarks
Table: Students
Condition:
Marks > 80
Output:
Shows only students scoring above 80
Best Practices
- Use meaningful query names.
- Avoid unnecessary fields in queries.
- Use criteria carefully to get correct results.
- Test query before using in reports.
🎯 Practice Task
- Create a query to display students with marks above 75.
- Filter records based on class.
- Try sorting data using a query.
- Observe how query does not change original table.
Select Query in MS Access
A Select Query is the most commonly used query in MS Access.
It is used to retrieve and display data from one or more tables
based on specific conditions.
It does not modify the original data — it only shows filtered results.
Features of Select Query
- Displays selected data from tables
- Filters records using criteria
- Sorts data (ascending/descending)
- Performs calculations
- Combines data from multiple tables
Steps to Create a Select Query
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Query Design |
| 3 |
Select table(s) |
| 4 |
Add required fields |
| 5 |
Enter criteria (if needed) |
| 6 |
Click Run |
Example Table
| ID |
Name |
Marks |
| 1 |
Rahul |
85 |
| 2 |
Simran |
92 |
| 3 |
Aman |
70 |
Query Example (Using Criteria)
Field: Marks
Criteria: >80
Result:
Rahul (85)
Simran (92)
Sorting Data
| Field |
Sort Order |
| Marks |
Descending |
Using Multiple Conditions
Marks > 70 AND Class = 10
SQL View Example
SELECT Name, Marks
FROM Students
WHERE Marks > 80;
Output Result
| Name |
Marks |
| Rahul |
85 |
| Simran |
92 |
Real-Life Examples
| Scenario |
Query Use |
| School |
Find students with highest marks |
| Shop |
Find products below stock limit |
| Bank |
Find customers with high balance |
Common Mistakes
- Using wrong criteria (e.g., text instead of number) ❌
- Not selecting correct fields ❌
- Forgetting to run the query ❌
- Confusing AND / OR conditions ❌
Best Practices
- Use meaningful query names.
- Test queries with small data first.
- Use criteria carefully.
- Avoid selecting unnecessary fields.
🎯 Practice Task
- Create a Select Query on Students table.
- Display Name and Marks only.
- Apply condition: Marks > 75.
- Sort results in descending order.
Action Query in MS Access
An Action Query is used to modify data in a table.
Unlike Select Query, it performs actions such as inserting, updating, or deleting records.
⚠️ Action Queries directly change data, so they must be used carefully.
Types of Action Queries
| Type |
Description |
Example |
| Insert Query |
Adds new records to a table |
Add new student data |
| Update Query |
Modifies existing records |
Update marks of students |
| Delete Query |
Removes records from a table |
Delete failed students |
| Make Table Query |
Creates a new table from query results |
Create top students table |
Example Table
| ID |
Name |
Marks |
| 1 |
Rahul |
85 |
| 2 |
Simran |
92 |
| 3 |
Aman |
70 |
Insert Query Example
INSERT INTO Students (Name, Marks)
VALUES ("Amit", 88);
Update Query Example
UPDATE Students
SET Marks = 90
WHERE Name = "Rahul";
Delete Query Example
DELETE FROM Students
WHERE Marks < 75;
Make Table Query Example
SELECT * INTO TopStudents
FROM Students
WHERE Marks > 80;
Steps to Create Action Query
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Query Design |
| 3 |
Add table |
| 4 |
Select fields |
| 5 |
Choose query type (Update/Delete/Append) |
| 6 |
Run query |
⚠️ Warning (Important)
- Action Queries permanently change data
- Deleted records cannot be recovered
- Always take a backup before running queries
Real-Life Examples
| Scenario |
Query Use |
| School |
Update marks after re-evaluation |
| Shop |
Delete expired products |
| Office |
Add new employee records |
Common Mistakes
- Running query without checking conditions ❌
- Deleting all records accidentally ❌
- Not taking backup ❌
- Using wrong criteria ❌
Best Practices
- Always test query as Select Query first.
- Take backup before running action query.
- Use proper conditions to avoid data loss.
- Run queries on small data first.
🎯 Practice Task
- Create an Update Query to change marks.
- Create a Delete Query for marks less than 50.
- Create an Insert Query to add new record.
- Test queries carefully.
Using Criteria in MS Access
Criteria are conditions used in queries to filter and display
specific records from a table.
They help you retrieve only the data you need instead of showing the entire table.
Why Use Criteria?
- Filter data based on conditions
- Find specific records quickly
- Reduce unnecessary data
- Improve query accuracy
Example Table
| ID |
Name |
Marks |
Class |
| 1 |
Rahul |
85 |
10 |
| 2 |
Simran |
92 |
10 |
| 3 |
Aman |
70 |
9 |
Basic Criteria Examples
| Condition |
Criteria |
Result |
| Marks greater than 80 |
>80 |
85, 92 |
| Marks less than 75 |
<75 |
70 |
| Equal to Class 10 |
=10 |
Rahul, Simran |
Using AND & OR Conditions
Marks > 80 AND Class = 10
→ Both conditions must be true
Marks > 80 OR Class = 9
→ Any one condition can be true
Text Criteria
| Condition |
Criteria |
Example |
| Name starts with "R" |
Like "R*" |
Rahul |
| Name ends with "n" |
Like "*n" |
Rahul, Simran |
| Name contains "ma" |
Like "*ma*" |
Rahul, Simran |
Date Criteria
#01-01-2025#
>#01-01-2025#
Between #01-01-2025# And #31-12-2025#
SQL Example
SELECT * FROM Students
WHERE Marks > 80 AND Class = 10;
Visual Concept
Table → Apply Criteria → Filtered Result
Students → Marks > 80 → Selected Records
Real-Life Examples
| Scenario |
Criteria Use |
| School |
Find students scoring above 90 |
| Shop |
Find products with stock less than 10 |
| Bank |
Find accounts with balance > ₹50,000 |
Common Mistakes
- Using wrong symbols (>, <, =) ❌
- Forgetting quotes in text criteria ❌
- Confusing AND with OR ❌
- Wrong date format ❌
Best Practices
- Test criteria with small data first.
- Use AND for strict filtering.
- Use OR for broader results.
- Always verify query results.
🎯 Practice Task
- Create a query with Marks > 80.
- Use AND condition with Class.
- Use LIKE operator for names.
- Test different criteria combinations.
What is a Form in MS Access?
A Form is a user-friendly interface used to
enter, view, and manage data in a database.
Instead of working directly with tables, forms provide a clean
and organized way to interact with data.
Why Use Forms?
- Easy data entry for users
- Improves data accuracy
- Provides better user interface
- Controls how data is displayed
Table vs Form
| Feature |
Table |
Form |
| Interface |
Simple grid |
User-friendly layout |
| Data Entry |
Difficult for beginners |
Easy and guided |
| Customization |
Limited |
Highly customizable |
Example Form Fields
| Field Label |
Input Type |
| Name |
Text Box |
| Class |
Dropdown |
| Marks |
Number Field |
| Passed |
Checkbox |
Visual Concept
Form Layout:
-------------------------
| Student Entry Form |
-------------------------
| Name: [________] |
| Class: [ 10 ▼ ] |
| Marks: [____] |
| Passed: [✔] |
-------------------------
| Save | Cancel |
-------------------------
Types of Forms
| Form Type |
Description |
| Single Form |
Displays one record at a time |
| Multiple Items Form |
Displays multiple records |
| Split Form |
Shows form and table together |
Real-Life Examples
| Scenario |
Form Use |
| School |
Student admission form |
| Office |
Employee data entry form |
| Shop |
Product entry form |
Complete Example
Form Name: StudentForm
Fields:
- Name
- Class
- Marks
- Passed
Function:
- Enter and edit student data easily
Best Practices
- Keep form simple and clean.
- Use labels for all fields.
- Group related fields together.
- Use validation to prevent wrong data.
🎯 Practice Task
- Create a form for Students table.
- Add fields: Name, Class, Marks.
- Use different input types (textbox, dropdown).
- Test data entry using the form.
Create a Form in MS Access
Creating a form allows you to build a user-friendly interface
for entering and managing data in a database.
MS Access provides multiple ways to create forms depending on your needs.
Methods to Create a Form
| Method |
Description |
Best For |
| Auto Form |
Automatically creates form with all fields |
Beginners |
| Form Wizard |
Step-by-step guided form creation |
Intermediate users |
| Design View |
Create fully customized form |
Advanced users |
Method 1: Create Form using Auto Form
Steps
| Step |
Action |
| 1 |
Select the table in Navigation Pane |
| 2 |
Go to Create tab |
| 3 |
Click Form |
| 4 |
Form is created automatically |
| 5 |
Save the form |
Method 2: Create Form using Form Wizard
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Form Wizard |
| 3 |
Select table and fields |
| 4 |
Choose layout (Columnar, Tabular) |
| 5 |
Click Finish |
Method 3: Create Form using Design View
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Form Design |
| 3 |
Add controls (Text Box, Label, Button) |
| 4 |
Set properties and layout |
| 5 |
Save the form |
Example Form
Form Name: StudentForm
Fields:
- Name
- Class
- Marks
Layout:
Simple column form with labels and input fields
Form Controls
| Control |
Purpose |
| Text Box |
Enter text or numbers |
| Label |
Display field name |
| Button |
Perform actions (Save, Delete) |
| Combo Box |
Dropdown selection |
| Checkbox |
Yes/No values |
Visual Concept
-------------------------
| Student Form |
-------------------------
| Name: [_______] |
| Class: [ 10 ▼ ] |
| Marks: [_____] |
-------------------------
| Save | Delete | Exit |
-------------------------
Best Practices
- Use Form Wizard for quick creation.
- Use Design View for customization.
- Keep layout clean and simple.
- Use proper labels for fields.
🎯 Practice Task
- Create a form using Auto Form.
- Create another form using Form Wizard.
- Add fields: Name, Class, Marks.
- Customize form using Design View.
Form Design in MS Access
Form Design allows you to create and customize forms
with full control over layout, appearance, and functionality.
It is used to build professional-looking user interfaces for data entry
and management.
Why Use Form Design?
- Create fully customized forms
- Control layout and appearance
- Add buttons and controls
- Improve user experience
Main Sections of Form Design
| Section |
Description |
| Form Header |
Top section (title/logo) |
| Detail Section |
Main area for fields |
| Form Footer |
Bottom section (buttons, notes) |
Common Form Controls
| Control |
Use |
| Text Box |
Input text or numbers |
| Label |
Display field names |
| Button |
Perform actions (Save, Delete) |
| Combo Box |
Dropdown list |
| Checkbox |
Yes/No input |
| Image |
Add pictures/logo |
Steps to Design a Form
| Step |
Action |
| 1 |
Open form in Design View |
| 2 |
Add required controls from toolbox |
| 3 |
Arrange fields properly |
| 4 |
Set properties (name, size, format) |
| 5 |
Save and test form |
Form Properties
| Property |
Purpose |
| Name |
Identify control |
| Format |
Set display format |
| Default Value |
Set default input |
| Validation Rule |
Restrict incorrect data |
| Caption |
Display label text |
Example Layout
-----------------------------
| Student Form |
-----------------------------
| Name: [__________] |
| Class: [ 10 ▼ ] |
| Marks: [______] |
| Passed: [✔] |
-----------------------------
| Save | Delete | Exit |
-----------------------------
Design Tips
- Align controls neatly
- Use consistent fonts and colors
- Group related fields together
- Use meaningful labels
Advanced Features
- Add navigation buttons
- Use conditional formatting
- Add images and logos
- Create calculated fields
Common Mistakes
- Overcrowded form layout ❌
- Missing labels ❌
- Poor alignment ❌
- No validation rules ❌
Best Practices
- Keep form simple and clean.
- Test form before final use.
- Use validation to ensure correct data.
- Design for user convenience.
🎯 Practice Task
- Open a form in Design View.
- Add text box, label, and button.
- Set validation rule for Marks (0–100).
- Align controls properly.
What is a Report in MS Access?
A Report is used to present data in a
formatted and printable layout.
Reports are mainly used to display summarized information
for analysis, sharing, and printing.
Why Use Reports?
- Display data in a professional format
- Summarize large data easily
- Prepare print-ready documents
- Improve data presentation
Table vs Query vs Report
| Feature |
Table |
Query |
Report |
| Purpose |
Store data |
Filter data |
Display data |
| Format |
Raw grid |
Filtered grid |
Formatted layout |
| Printing |
Not suitable |
Limited |
Best for printing |
Example Report
-------------------------------
| Student Report |
-------------------------------
| Name | Marks | Result |
-------------------------------
| Raman | 85 | Pass |
| Simran | 92 | Pass |
-------------------------------
| Total Students: 2 |
-------------------------------
Features of Reports
- Grouping of data
- Sorting records
- Adding totals and calculations
- Custom layouts and formatting
Types of Reports
| Type |
Description |
| Tabular Report |
Displays data in rows and columns |
| Columnar Report |
Displays one record at a time |
| Summary Report |
Shows grouped and summarized data |
Real-Life Examples
| Scenario |
Report Use |
| School |
Student result report |
| Shop |
Sales report |
| Office |
Employee performance report |
Report Sections
| Section |
Description |
| Report Header |
Title of report |
| Page Header |
Column headings |
| Detail |
Main data records |
| Report Footer |
Totals and summary |
Complete Example
Report Name: StudentReport
Data Source: Students Table
Fields:
- Name
- Marks
- Result
Features:
- Grouped by Class
- Total marks calculated
Best Practices
- Keep report layout clean and readable.
- Use headings and labels clearly.
- Add totals where needed.
- Preview before printing.
🎯 Practice Task
- Create a report for Students table.
- Add fields: Name, Marks.
- Apply sorting and grouping.
- Preview the report.
Create a Report in MS Access
Creating a report allows you to present data in a
structured, formatted, and printable layout.
MS Access provides multiple methods to create reports based on your requirements.
Methods to Create a Report
| Method |
Description |
Best For |
| Auto Report |
Automatically creates report with all fields |
Beginners |
| Report Wizard |
Step-by-step guided report creation |
Intermediate users |
| Design View |
Fully customized report design |
Advanced users |
Method 1: Create Report using Auto Report
Steps
| Step |
Action |
| 1 |
Select the table or query |
| 2 |
Go to Create tab |
| 3 |
Click Report |
| 4 |
Report is generated automatically |
| 5 |
Save the report |
Method 2: Create Report using Report Wizard
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Report Wizard |
| 3 |
Select table/query and fields |
| 4 |
Choose grouping and sorting |
| 5 |
Select layout and style |
| 6 |
Click Finish |
Method 3: Create Report using Design View
Steps
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click Report Design |
| 3 |
Add fields and controls |
| 4 |
Customize layout and formatting |
| 5 |
Save the report |
Example Report
Report Name: StudentReport
Fields:
- Name
- Marks
- Result
Features:
- Grouped by Class
- Sorted by Marks
- Total marks displayed
Report Controls
| Control |
Purpose |
| Label |
Display headings |
| Text Box |
Display data |
| Line |
Separate sections |
| Image |
Add logo |
Visual Concept
--------------------------------
| Student Report |
--------------------------------
| Name | Marks | Result |
--------------------------------
| Raman | 85 | Pass |
| Simran | 92 | Pass |
--------------------------------
| Total Students: 2 |
--------------------------------
Best Practices
- Use Report Wizard for quick setup.
- Use Design View for customization.
- Keep layout clean and readable.
- Preview before printing.
🎯 Practice Task
- Create a report using Report Wizard.
- Add fields: Name, Marks.
- Apply grouping and sorting.
- Customize layout in Design View.
Formatting Reports in MS Access
Formatting Reports means improving the appearance of a report
to make it more readable, professional, and visually appealing.
Proper formatting helps users understand data easily and enhances presentation quality.
Why Formatting is Important
- Improves readability
- Makes reports professional
- Highlights important data
- Prepares reports for printing
Common Formatting Options
| Option |
Description |
| Font Style |
Change font type, size, and color |
| Alignment |
Left, center, or right align text |
| Bold/Italic |
Highlight headings |
| Background Color |
Add color to sections |
| Borders |
Add lines around fields |
Formatting Sections
| Section |
Formatting Tips |
| Report Header |
Use large bold title |
| Page Header |
Highlight column headings |
| Detail Section |
Keep data clean and aligned |
| Report Footer |
Display totals clearly |
Steps to Format a Report
| Step |
Action |
| 1 |
Open report in Design View |
| 2 |
Select field or section |
| 3 |
Apply formatting (font, color, alignment) |
| 4 |
Add borders or background color |
| 5 |
Preview the report |
Example Before and After Formatting
Before:
Name Marks Result
Raman 85 Pass
After:
--------------------------------
| Name | Marks | Result |
--------------------------------
| Raman | 85 | Pass |
--------------------------------
Conditional Formatting
Conditional formatting highlights data based on conditions.
If Marks < 40 → Show in Red
If Marks > 80 → Show in Green
Adding Logo and Title
- Insert logo in Report Header
- Add report title using Label control
- Align properly for professional look
Real-Life Examples
| Scenario |
Formatting Use |
| School |
Highlight top students |
| Business |
Color-code sales data |
| Office |
Format performance reports |
Common Mistakes
- Using too many colors ❌
- Poor alignment ❌
- Overcrowded layout ❌
- Small unreadable font ❌
Best Practices
- Keep design simple and clean.
- Use consistent font style.
- Highlight only important data.
- Always preview before printing.
🎯 Practice Task
- Open a report in Design View.
- Apply font and color formatting.
- Add borders and alignment.
- Use conditional formatting for marks.
Macros in MS Access
Macros in MS Access are tools used to automate tasks
and perform actions without writing code.
They help save time by executing a series of commands automatically.
Why Macros are Important
- Automates repetitive tasks
- Improves efficiency
- Reduces human errors
- No programming knowledge required
Common Macro Actions
| Action |
Description |
| OpenForm |
Opens a form |
| OpenReport |
Opens a report |
| Close |
Closes an object |
| RunQuery |
Executes a query |
| MessageBox |
Displays a message |
Types of Macros
| Type |
Description |
| Standalone Macro |
Created independently and reused |
| Embedded Macro |
Attached to forms or reports |
Steps to Create a Macro
| Step |
Action |
| 1 |
Go to Create tab |
| 2 |
Click on Macro |
| 3 |
Select an action (e.g., OpenForm) |
| 4 |
Set required arguments |
| 5 |
Save and run the macro |
Example of a Macro
Action: OpenForm
Form Name: StudentForm
Action: MessageBox
Message: "Form Opened Successfully"
Using Macros in Forms
- Attach macro to a button
- Use On Click event
- Automate form navigation
Real-Life Examples
| Scenario |
Macro Use |
| School |
Open student report on button click |
| Office |
Auto-run reports daily |
| Business |
Show confirmation messages |
Common Mistakes
- Incorrect action selection ❌
- Missing arguments ❌
- Not saving macro ❌
- Overusing macros ❌
Best Practices
- Use meaningful macro names
- Keep macros simple
- Test before use
- Use comments for clarity
🎯 Practice Task
- Create a macro to open a form.
- Add a message box action.
- Attach macro to a button.
- Run and test the macro.
Introduction to VBA (Visual Basic for Applications)
VBA (Visual Basic for Applications) is a programming language used in
MS Access and other Microsoft Office applications to create advanced
automation.
Unlike macros, VBA allows you to write custom code to perform complex
operations.
Why Learn VBA?
- Automates complex tasks
- Provides more control than macros
- Creates dynamic applications
- Handles errors efficiently
Macros vs VBA
| Feature |
Macros |
VBA |
| Ease of Use |
Easy |
Requires coding |
| Flexibility |
Limited |
Very High |
| Error Handling |
Basic |
Advanced |
| Automation |
Simple tasks |
Complex tasks |
Opening VBA Editor
- Press Alt + F11
- Or go to Database Tools → Visual Basic
Basic Structure of VBA Code
Sub HelloMessage()
MsgBox "Welcome to VBA!"
End Sub
Common VBA Elements
| Element |
Description |
| Sub Procedure |
Block of code that performs a task |
| Function |
Returns a value |
| Variables |
Stores data |
| MsgBox |
Displays a message box |
Example: Button Click Event
Private Sub btnClick_Click()
MsgBox "Button Clicked!"
End Sub
Using VBA in Forms
- Open form in Design View
- Select a button
- Go to Event tab
- Choose "On Click"
- Select "Code Builder"
Real-Life Examples
| Scenario |
VBA Use |
| School |
Validate student marks |
| Office |
Automate reports generation |
| Business |
Control data entry process |
Common Mistakes
- Syntax errors ❌
- Incorrect variable names ❌
- Forgetting End Sub ❌
- Not testing code ❌
Best Practices
- Use meaningful variable names
- Write clean and simple code
- Comment your code
- Test step-by-step
🎯 Practice Task
- Open VBA Editor
- Create a simple MsgBox program
- Attach code to a button
- Run and test it
Automation in MS Access
Automation means using tools like Macros and
VBA to perform tasks automatically without manual effort.
It helps in saving time, reducing errors, and improving efficiency in database operations.
Why Automation is Important
- Saves time by reducing manual work
- Improves accuracy
- Handles repetitive tasks easily
- Enhances productivity
Tools Used for Automation
| Tool |
Description |
| Macros |
Automates simple tasks without coding |
| VBA |
Handles complex automation using code |
| Queries |
Automatically process and filter data |
Types of Automation
| Type |
Example |
| Event-Based |
Button click opens a form |
| Time-Based |
Daily report generation |
| Data-Based |
Validation of entered data |
Steps to Implement Automation
| Step |
Action |
| 1 |
Identify repetitive task |
| 2 |
Choose tool (Macro or VBA) |
| 3 |
Create automation logic |
| 4 |
Test automation |
| 5 |
Deploy and monitor |
Example of Automation
Task: Open Report Automatically
Using Macro:
Action: OpenReport
Report Name: SalesReport
Using VBA:
DoCmd.OpenReport "SalesReport"
Automation in Forms
- Auto-fill fields
- Validate user input
- Trigger actions on button click
Real-Life Examples
| Scenario |
Automation Use |
| School |
Auto-generate student reports |
| Office |
Schedule report creation |
| Business |
Automatic invoice generation |
Common Mistakes
- Choosing wrong tool ❌
- Not testing automation ❌
- Over-complicating tasks ❌
- Ignoring error handling ❌
Best Practices
- Start with simple automation
- Use macros for basic tasks
- Use VBA for complex logic
- Always test before final use
🎯 Practice Task
- Create a macro to open a report
- Write VBA code to show a message
- Automate a form action
- Test automation process
Database Security in MS Access
Database Security refers to protecting your database from
unauthorized access, misuse, and data loss.
It ensures that only authorized users can view or modify the data.
Why Database Security is Important
- Protects sensitive information
- Prevents unauthorized access
- Maintains data integrity
- Avoids data loss or corruption
Common Security Features
| Feature |
Description |
| Password Protection |
Set password to open database |
| Encryption |
Protects data by converting it into secure format |
| User Permissions |
Control who can view/edit data |
| Backup |
Create copies to prevent data loss |
Types of Security
| Type |
Example |
| Physical Security |
Protecting computers and devices |
| Logical Security |
Passwords and user access control |
| Network Security |
Protecting data during sharing |
Steps to Apply Security in MS Access
| Step |
Action |
| 1 |
Open database |
| 2 |
Go to File → Info |
| 3 |
Select Encrypt with Password |
| 4 |
Set a strong password |
| 5 |
Backup database regularly |
Example of Security
User Login System:
Username: Admin
Password: ****
Access:
✔ View Data
✔ Edit Data
✖ Delete Records (Restricted)
Best Security Practices
- Use strong passwords
- Encrypt database files
- Take regular backups
- Limit user permissions
- Avoid sharing database publicly
Common Mistakes
- Using weak passwords ❌
- No backup ❌
- Giving full access to all users ❌
- Ignoring encryption ❌
Real-Life Examples
| Scenario |
Security Use |
| School |
Protect student records |
| Office |
Restrict employee data access |
| Bank |
Secure financial information |
🎯 Practice Task
- Set password for a database
- Create a backup file
- Plan user access levels
- Test database security
Student Management System (Real Project)
A Student Management System is a complete database project used to
store, manage, and organize student information.
This project combines all concepts of MS Access like
Tables, Queries, Forms, Reports, Macros, and VBA.
Project Objectives
- Store student details
- Manage marks and results
- Generate reports
- Automate tasks
Database Structure
| Table Name |
Fields |
| Students |
StudentID, Name, Class, Section, Phone |
| Marks |
MarkID, StudentID, Subject, Marks |
| Subjects |
SubjectID, SubjectName |
Relationships
- Students → Marks (One-to-Many)
- Subjects → Marks (One-to-Many)
Forms to Create
- Student Entry Form
- Marks Entry Form
- Search Student Form
Queries to Use
| Query |
Purpose |
| Total Marks |
Calculate total marks |
| Result Query |
Pass/Fail logic |
| Top Students |
Find highest scorers |
Reports to Generate
- Student Report Card
- Class-wise Result Report
- Topper List
Automation Features
- Auto calculate total marks
- Auto result (Pass/Fail)
- Open forms using buttons
Example VBA Code
Private Sub btnCalculate_Click()
If Me.Marks < 40 Then
Me.Result = "Fail"
Else
Me.Result = "Pass"
End If
End Sub
Sample Output
-----------------------------------------
| Name | Subject | Marks | Result |
-----------------------------------------
| Raman | Math | 85 | Pass |
-----------------------------------------
Real-Life Use
- Schools manage student records
- Teachers track performance
- Generate report cards easily
Common Mistakes
- Wrong relationships ❌
- Duplicate data ❌
- Poor form design ❌
- No validation ❌
Best Practices
- Use primary keys properly
- Normalize data
- Validate inputs
- Test each module
🎯 Project Task
- Create all tables with proper fields
- Define relationships
- Design forms for data entry
- Create queries and reports
- Add automation using macros/VBA
Inventory Management System (Real Project)
An Inventory Management System is a database project used to
track, manage, and control stock of products in a business.
It helps businesses monitor stock levels, purchases, and sales efficiently.
Project Objectives
- Manage product stock
- Track purchases and sales
- Avoid stock shortage or overstock
- Generate inventory reports
Database Structure
| Table Name |
Fields |
| Products |
ProductID, ProductName, Category, Price, StockQty |
| Suppliers |
SupplierID, SupplierName, Phone |
| Purchases |
PurchaseID, ProductID, Quantity, Date |
| Sales |
SaleID, ProductID, Quantity, Date |
Relationships
- Products → Purchases (One-to-Many)
- Products → Sales (One-to-Many)
- Suppliers → Purchases (One-to-Many)
Forms to Create
- Product Entry Form
- Purchase Entry Form
- Sales Entry Form
Queries to Use
| Query |
Purpose |
| Stock Calculation |
Available stock = Purchases - Sales |
| Low Stock |
Identify products with low quantity |
| Sales Report |
Track sold items |
Reports to Generate
- Stock Report
- Purchase Report
- Sales Report
Automation Features
- Auto update stock quantity
- Alert for low stock
- Open forms using buttons
Example VBA Code
Private Sub btnUpdateStock_Click()
Me.StockQty = Me.PurchaseQty - Me.SaleQty
End Sub
Sample Output
----------------------------------------------
| Product | Stock | Status |
----------------------------------------------
| Pen | 50 | Available |
| Notebook | 5 | Low Stock ⚠ |
----------------------------------------------
Real-Life Use
- Shops manage product stock
- Warehouses track inventory
- Businesses analyze sales
Common Mistakes
- Incorrect stock calculation ❌
- No backup ❌
- Duplicate entries ❌
- Poor relationships ❌
Best Practices
- Use proper relationships
- Validate data entry
- Automate calculations
- Regularly update stock
🎯 Project Task
- Create all inventory tables
- Define relationships
- Design forms for entry
- Create stock queries
- Generate reports
Billing Software (Real Project)
Billing Software is a database system used to
generate invoices, manage sales, and calculate totals automatically.
It is widely used in shops, businesses, and service centers for fast and accurate billing.
Project Objectives
- Create and print invoices
- Calculate total amount automatically
- Apply tax and discounts
- Maintain sales records
Database Structure
| Table Name |
Fields |
| Customers |
CustomerID, Name, Phone |
| Products |
ProductID, ProductName, Price |
| Invoices |
InvoiceID, CustomerID, Date, TotalAmount |
| InvoiceDetails |
DetailID, InvoiceID, ProductID, Quantity, Price |
Relationships
- Customers → Invoices (One-to-Many)
- Invoices → InvoiceDetails (One-to-Many)
- Products → InvoiceDetails (One-to-Many)
Forms to Create
- Customer Entry Form
- Product Entry Form
- Invoice Form (Main Billing Screen)
Queries to Use
| Query |
Purpose |
| Invoice Total |
Calculate total bill amount |
| Sales Report |
Track daily/monthly sales |
| Customer History |
View past purchases |
Reports to Generate
- Invoice Print Report
- Daily Sales Report
- Monthly Revenue Report
Automation Features
- Auto calculate total amount
- Auto apply tax (GST)
- Auto generate invoice number
Example VBA Code
Private Sub btnCalculateTotal_Click()
Me.TotalAmount = Me.Quantity * Me.Price
End Sub
Sample Output (Invoice)
--------------------------------------------
Invoice No: 101
Customer: Raman
--------------------------------------------
| Product | Qty | Price | Total |
--------------------------------------------
| Pen | 2 | 10 | 20 |
| Notebook | 1 | 50 | 50 |
--------------------------------------------
Total Amount: 70
--------------------------------------------
Real-Life Use
- Retail shops generate bills
- Businesses track sales
- Service providers create invoices
Common Mistakes
- Wrong calculations ❌
- No tax handling ❌
- Duplicate invoices ❌
- Poor form design ❌
Best Practices
- Validate input fields
- Use auto numbering
- Apply proper tax rules
- Backup data regularly
🎯 Project Task
- Create all billing tables
- Design invoice form
- Apply total calculation
- Generate invoice report
- Test billing system
🎉 Course Completed!
Congratulations! You’ve successfully finished this course.