Design a Microsoft Access Database for Project Comments
Question details
The user needs a scalable Access database design for storing multiple dated comments for each project.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A project database needs to record and display any number of comments for each project without creating separate comment fields or tables per project.
- Observed behavior
- Each project should have a related list of dated comments that can be viewed and added from the project record.
Check that the Projects table has a unique ProjectID primary key. If ProjectID is an AutoNumber field, use a Number field with the Long Integer field size for the matching foreign key in Comments.
Create a related Comments table and linked subform
Use a one-to-many relationship to store multiple dated comments for each project and show them on the project form.
Each comment is a separate row linked to one project. This avoids adding new fields or tables as comments accumulate, although normal Access database size limits still apply.
In Access, select Create > Table Design. Add CommentID as an AutoNumber primary key, ProjectID as a matching Number field, CommentDate as Date/Time, and Comment as Long Text. Save the table as Comments.
Open Database Tools > Relationships and add the Projects and Comments tables. Drag Projects.ProjectID to Comments.ProjectID, select Enforce Referential Integrity, and click Create.
Select the Projects table in the Navigation Pane, then choose Create > Form to create a form for viewing project records. Save the form.
Open the project form in Design View and add a Subform/Subreport control. Use the wizard to select the Comments table, include its comment fields, and link the subform to the project form by ProjectID. Verify that the subform control's Link Master Fields and Link Child Fields properties are both set to ProjectID.
Create a query for Comments using Create > Query Design and set CommentDate to sort ascending. Use that query as the subform's Record Source so comments for the current project appear in date order.

Use a project selector on a separate comments form
Use this approach when users need to enter comments independently of the project form.
Track simple project comments in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files. Use a spreadsheet for a simple project comment log and move compatible documents between Office suites. WPS does not replace Access relationships or fix an Access database.

Frequently Asked Questions
Why should comments be stored in a separate table?
A Comments table stores each comment as a row with a ProjectID foreign key. This lets one project have multiple comments without adding a new field for each one.
How does the subform show comments for only the current project?
In the project form's Design View, select the subform control and set Link Master Fields and Link Child Fields to ProjectID. Access then filters the subform to the current project.
What data type should Comments.ProjectID use?
It must match the key it references. If Projects.ProjectID is AutoNumber, set Comments.ProjectID to Number with the Long Integer field size in Table Design.
Can I display project names while storing project IDs?
Yes. On a comments form, use a combo box bound to Comments.ProjectID and configure its lookup to display a project name while storing the corresponding ProjectID.




