Others

Design a Medication Schedule Database in Microsoft Access

Elise WilliamsElise Williams Nov 25, 2026 868 views

Question details

The user needs a database design for medication schedules and recorded completion times.

Design a Medication Schedule Database in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Track medications on selected weekdays and dates, and report scheduled and completed doses.
Observed behavior
Medication details, scheduled doses, and completion times should be organized so they can be maintained and reported without duplicating tables.
Before you start

List the medication details you need to track, the scheduled times and weekdays for each medication, and the date range for the schedule. Decide whether each medication can have more than one scheduled dose at the same time.

Solution 1Recommended

Create related medication and scheduled-dose tables in Access

Use this normalized design to track scheduled doses and their completion times in one shared schedule table.

1
Create the medications table

In Access, select Create > Table Design. Add an AutoNumber MedicationID as the primary key and fields such as MedicationName and any other medication details you need. Save the table as Medications.

2
Create the scheduled-dose table

Use Create > Table Design to create a ScheduledDoses table with an AutoNumber DoseID primary key, a Number field named MedicationID, a Date/Time field named ScheduledAt, and a nullable Date/Time field named CompletedAt. Set MedicationID to Long Integer to match the AutoNumber key.

3
Link the tables

Open Database Tools > Relationships, add both tables, and drag Medications.MedicationID to ScheduledDoses.MedicationID. Select Enforce Referential Integrity and create the relationship.

4
Add scheduled doses

Open ScheduledDoses in Datasheet View and enter one row per planned dose, using the medication ID and scheduled date and time. For recurring schedules, create a query or custom routine that generates rows for the selected date range and weekdays.

5
Record and report completion

Enter the actual date and time in CompletedAt when a dose is recorded as completed; leave it blank otherwise. Use Create > Query Design to join the tables and filter ScheduledAt for a day, then use the query as the record source for a daily report.

Create related medication and scheduled-dose tables in Access
Prevent duplicate scheduled doses: If only one dose per medication can be scheduled at a given time, create a unique composite index on MedicationID and ScheduledAt in the ScheduledDoses table's Design View.
Free Microsoft Office alternative

Track a simple medication schedule in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for working with office files. Use WPS Spreadsheets for a simple schedule while moving existing Excel files into your workflow. It does not replace the relationships or database features of Microsoft Access.

Arrange medication names, scheduled times, and completion times in a spreadsheetOpen and edit Microsoft Excel XLSX files for an easier transitionUse a familiar spreadsheet interface to sort and filter schedule entriesWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Should I create a separate table for each medication?

No. Store medication details as rows in one Medications table and reference each medication from a shared ScheduledDoses table using MedicationID.

How do I record whether a scheduled dose was completed?

Add a nullable Date/Time field such as CompletedAt to ScheduledDoses. Leave it blank until completion is recorded, then enter the actual date and time.

How can I create a daily medication report in Access?

Use Create > Query Design to join Medications and ScheduledDoses by MedicationID and filter ScheduledAt to the desired day. Use that query as the record source for a report.

How can multiple medications share the same routine?

Define reusable time schedules and, if useful, medication groups in separate tables. Link medications to the relevant group or schedule, then generate individual scheduled-dose rows from those rules.