CSC 182 · Computer Applications
Our notes
2 min readThe objects of Access
| Object | Job |
|---|---|
| Table | Stores the data |
| Query | Asks questions of the data |
| Form | A friendly screen for entering data |
| Report | A formatted printout |
All are kept in one file (.accdb).
Creating a table
- Create → Table Design.
- Type each field name and choose its data type.
- Set the primary key (right-click → Primary Key).
- Save the table with a clear name.
Data types
| Type | Holds | Example |
|---|---|---|
| Short Text | Up to 255 characters | Surname, matric no. |
| Long Text | Long text | Address, comments |
| Number | Numbers for calculations | Score |
| Date/Time | Dates | Date of birth |
| Currency | Money | School fees |
| AutoNumber | Counter filled in by Access | Record ID |
| Yes/No | True or false | Fees paid? |
Store a phone number as Short Text, not Number: leading zeros (0803...) would be lost, and you never add phone numbers.
Field properties
- Field size: limit length.
- Validation rule: for example, Between 0 And 100 for a score.
- Required: must not be left empty.
- Default value.
Datasheet and Design views
- Datasheet view: rows and columns, for entering data.
- Design view: for building the structure.
Relationships
Database Tools → Relationships: drag the matric number from Students to Results to link them (one student, many results). Tick Enforce Referential Integrity so a result cannot exist for a student who is not on the list.
Queries
Create → Query Design, add the table, choose fields, set criteria:
| Criteria | Finds |
|---|---|
| "Rivers" | State is Rivers |
| >=70 | Scores of 70 and above |
| Between 40 And 49 | Scores from 40 to 49 |
| Like "O*" | Names starting with O |
Example: show the names and scores of students who scored below 40 in CSC 182, sorted by score. Criteria: Course = "CSC 182" and Score < 40.
A query can also calculate: Total: [Test] + [Exam].
Forms
Create → Form Wizard: choose fields and a layout. Forms make data entry easier and safer for staff who should not see the whole table.
Reports
Create → Report Wizard: choose fields, grouping (by department), sorting and totals. Print as a class list or result sheet.
Worked check
A test score of 25 and exam score of 48 give Total = 73 in the query. Check: 25 + 48 = 73. Under the 70-and-above criterion the student appears; under Between 40 And 49 they do not.
Exams usually ask
- Name the four main objects of Access and their uses.
- Choose suitable data types for given fields.
Common mistake
Putting everything in one big table. Split data into tables for each kind of thing and link them with keys.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Workplace Software and Skills, 13.2 Microsoft Access: Main Features and Navigation
(opens openstax.org in a new tab)
OpenStax, Workplace Software and Skills, 13.2 Microsoft Access: Main Features and Navigation, CC BY-NC-SA 4.0 · licence
-
Workplace Software and Skills, 13.3 Querying a Database
(opens openstax.org in a new tab)
OpenStax, Workplace Software and Skills, 13.3 Querying a Database, CC BY-NC-SA 4.0 · licence
-
Microsoft Access
(opens en.wikipedia.org in a new tab)
Wikipedia, Microsoft Access, CC BY-SA 4.0 · licence
-
Query by Example
(opens en.wikipedia.org in a new tab)
Wikipedia, Query by Example, CC BY-SA 4.0 · licence
-
OpenStax, Workplace Software and Skills (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Workplace Software and Skills (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Access Tutorial for Beginners!
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Microsoft Access - Tutorial for Beginners [ COMPLETE ]
16 min · ≈ 72 MB · about ₦40
(opens youtube.com in a new tab)
-
Microsoft Access Tutorial - Beginners Level 1 (Quick Start)
26 min · ≈ 117 MB · about ₦66
(opens youtube.com in a new tab)
-
How to use Microsoft Access - Beginner Tutorial
31 min · ≈ 140 MB · about ₦79
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.