Design a Medication Schedule Database in Microsoft Access
Question details
The user needs a database design for medication schedules and recorded completion times.

- 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.
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.
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.
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.
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.
Open Database Tools > Relationships, add both tables, and drag Medications.MedicationID to ScheduledDoses.MedicationID. Select Enforce Referential Integrity and create the relationship.
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.
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.

Add reusable rules for recurring medication schedules
Use schedule rules when you need to generate many doses across selected weekdays and date ranges.
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.

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.




