A table is one of the most important objects in Microsoft Access. It stores data in rows and columns. In this lesson, you will learn how to create tables, define fields, select data types, and enter records.
A table is a database object used to store related information. Each table contains fields and records.
Example: Students Table
| StudentID | StudentName | Course | Mobile |
|---|---|---|---|
| 101 | Rahul Kumar | ADCA | 9876543210 |
| 102 | Priya Kumari | Tally Prime | 9876543211 |
| 103 | Amit Kumar | Web Development | 9876543212 |
In this example, StudentID, StudentName, Course, and Mobile are fields. Each student's information forms one record.
You can create tables in different ways:
Use the Table command to create a table quickly and enter records in Datasheet View.
Use Table Design to define field names, data types, field properties, and primary keys before entering data.
Access can create or populate tables using supported external data sources, such as Excel files or text files.
Access may assign a default field such as ID. You can rename fields and adjust the structure as needed.
Example table design:
| Field Name | Data Type | Purpose |
|---|---|---|
| StudentID | AutoNumber | Unique student identifier |
| StudentName | Short Text | Student's name |
| Mobile | Short Text | Mobile number |
| Course | Short Text | Course name |
| AdmissionDate | Date/Time | Date of admission |
A field name identifies the type of information stored in a column. Good field names make a database easier to understand and maintain.
A data type determines what kind of value a field can store and which operations can be performed on that value.
| Data Type | Use | Example |
|---|---|---|
| Short Text | Names and short text values | Rahul Kumar |
| Long Text | Long descriptions or notes | Student address details |
| Number | Numeric values used in calculations | Quantity |
| Date/Time | Dates and times | 11/10/2026 |
| Currency | Money values | ₹5,000 |
| AutoNumber | Automatically generated unique values | 101, 102, 103 |
| Yes/No | True/false values | Paid: Yes |
| Hyperlink | Web or other supported links | https://example.com |
| Attachment | Files attached to records | Supporting document |
Important: Mobile numbers should generally use Short Text, not Number, because they are identifiers and may contain leading zeros or a country code.
A primary key is a field, or combination of fields, that uniquely identifies every record in a table.
In a Students table, StudentID can be the primary key because each student has a different ID.
Use descriptive names such as Students, Courses, Employees, or Payments instead of generic names.
Plan the fields before creating a table. A good table structure makes queries, forms, and reports easier to build.
Create a Students table in Microsoft Access.
InstituteDB.Students.1. What does a row in a table represent?
2. Which data type is generally suitable for a mobile number?
3. What is the main purpose of a primary key?