Fields and records are the basic building blocks of a database table. In this lesson, you will learn their meanings, differences, examples, and how to work with them in Microsoft Access.
A field is a column in a database table. It stores one particular type of information about each record.
Examples of fields:
In a Students table, the StudentName field stores the names of students, while the Course field stores their course names.
Remember: A field represents a column.
A record is a row in a database table. It contains related field values describing one item, person, or entity.
For example, one student's ID, name, mobile number, and course together form one record.
| StudentID | StudentName | Mobile | Course |
|---|---|---|---|
| 101 | Rahul Kumar | 9876543210 | ADCA |
| 102 | Priya Kumari | 9876543211 | Tally Prime |
| 103 | Amit Kumar | 9876543212 | Web Development |
In the table above, the row containing Rahul Kumar's information is one record.
Remember: A record represents a row.
| Field | Record |
|---|---|
| A field is a column. | A record is a row. |
| Stores one category of information. | Contains related values for one entry. |
| Example: StudentName. | Example: All details of student 101. |
| Defined when designing a table. | Added when entering data into a table. |
Consider this Employees table:
| EmployeeID | EmployeeName | Department | Salary |
|---|---|---|---|
| 1 | Ravi | Sales | 20000 |
| 2 | Neha | Accounts | 25000 |
| 3 | Aman | IT | 30000 |
Tip: Columns are fields, rows are records, and individual entries are field values.
Example:
Add a field named Email with the
Short Text data type to store student email
addresses.
If a field uses AutoNumber, Access generates its value automatically. You generally do not enter that value manually.
Example: If a student's course changes from ADCA to Web Development, update the Course field in that student's record.
Be careful when editing records. Changes to important information can affect reports, queries, and other users of the database.
Warning: Deleting a record removes its data. Related records or relationships may also affect whether deletion is permitted. Always verify the selected record first.
Field properties control how a field stores, displays, or validates information.
| Property | Purpose |
|---|---|
| Field Size | Controls the maximum size for supported field types. |
| Default Value | Provides an initial value for a new record. |
| Required | Determines whether a field must contain a value. |
| Validation Rule | Restricts values according to a condition. |
| Format | Controls how a value is displayed. |
| Caption | Provides a display label for a field in supported contexts. |
For example, a Required property can help prevent a student's name from being left blank.
Create a Students table and practise the following tasks:
1. What does a field represent in a table?
2. What does a record represent?
3. Which view is commonly used to enter records directly into a table?