CSC 282 · Database Programming
Our notes
2 min readWhat Access is
A desktop DBMS in Microsoft Office (Windows) that keeps tables, queries, forms, reports, macros and code in one file (.accdb). Good for small offices and for learning; for many users over a network, a server DBMS is better. LibreOffice Base is a free alternative with the same ideas.
Tables
- Create in Design View: field names, data types (Short Text, Long Text, Number, Currency, Date/Time, Yes/No, AutoNumber, Lookup), and the primary key (key icon).
- Field properties give validation: Field Size, Format, Input Mask (for a phone pattern), Default Value, Validation Rule (Between 0 And 100) with a Validation Text message, Required, Indexed (Yes, No Duplicates).
Relationships
Database Tools → Relationships: drag the primary key onto the matching foreign key, tick Enforce Referential Integrity, and choose cascade update or delete if wanted. Lines show 1 and ∞ ends.
Queries
- Select query in the Query Design grid: add tables, pick fields, set Criteria (">=4.5", "Like 'O*'"), Sort, and Totals (Group By, Sum, Avg, Count).
- Parameter query: criteria in square brackets, e.g. [Enter level], asks the user each time.
- Action queries: Make-Table, Append, Update, Delete (they change data: back up first).
- Calculated field: GradePoint: IIf([Score]>=70,5,IIf([Score]>=60,4,IIf([Score]>=50,3,IIf([Score]>=45,2,IIf([Score]>=40,1,0))))). (UNIPORT and most Nigerian universities use a 5-point scale; check your handbook's bands.)
Every Access query is SQL underneath: switch to SQL View to see it.
Forms
Screens for entering and viewing data one record at a time. Use the Form Wizard, then adjust in Layout or Design view: combo boxes for lookups, buttons for actions, a subform for the "many" side (a student form with a subform of results).
Reports
Formatted output for printing: grouping levels (by department), sorting, totals in group footers, page headers. A transcript or a class list is a report.
Macros and VBA
Macros automate steps (open a form, run a query) without code. VBA (Visual Basic for Applications) gives full programming: loops over records, checks before saving (BeforeUpdate event), custom messages.
Practical workflow
- Design on paper (ER diagram, normalised tables).
- Create tables with keys and validation.
- Set relationships with referential integrity.
- Enter test data.
- Build queries, then forms and reports on them.
- Back up the .accdb file regularly; use Compact and Repair to keep it healthy.
Exams usually ask
- Name Access objects and what each is for.
- Write a criteria expression or a calculated field.
- Describe how to enforce referential integrity.
Common mistake
Typing the same lookup values (department names) by hand in every record. Put them in their own table and use a combo box, so spelling stays consistent.
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.4 Maintaining Records in a Database
(opens openstax.org in a new tab)
OpenStax, Workplace Software and Skills, 13.4 Maintaining Records in 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
-
NOUN CIT 304: Data Management
NOUN course book (PDF, about 6.9 MB: best on Wi-Fi). Files, databases, the relational model and SQL.
(opens nou.edu.ng in a new tab)
-
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
-
Microsoft Access Tutorial - Beginners Level 1 (Quick Start)
26 min · ≈ 117 MB · about ₦66
(opens youtube.com in a new tab)
-
Microsoft Access - Tutorial for Beginners in 12 MINS! [ + AI USE ]
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Access Tutorial for Beginners!
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Microsoft Access Basics: Easy Tutorial For Beginners
18 min · ≈ 81 MB · about ₦45
(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.