Others

Check Whether All Subtasks Are Complete in Microsoft Access

Algirdas JasaitisAlgirdas Jasaitis Nov 14, 2026 868 views

Question details

Create a query that reports a parent task as complete when every related subtask has a completion date.

Check Whether All Subtasks Are Complete in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
A database tracks parent tasks and related subtasks, each with a completion date.
Observed behavior
The query should show Not Complete when a related subtask has no completion date and Complete when none are unfinished.
Before you start

Identify the parent task table, subtask table, linking fields, and completion date field. The example assumes a numeric TaskID in both tables and a Date/Time field named DateComplete in the subtask table.

Solution 1Recommended

Use DCount to find unfinished subtasks in an Access query

Count related subtasks with a null completion date and use that count to assign each parent task a status.

This example assumes the parent table is named ParentTasks and the child table is named Subtasks. Replace the table and field names with those in your database.

1
Open a new query

In Access, select Create > Query Design, then switch to SQL View.

2
Enter the query

Paste this SQL into SQL View: SELECT P.TaskID, IIf(DCount("*", "Subtasks", "TaskID = " & [P].[TaskID] & " AND DateComplete Is Null") > 0, "Not Complete", "Complete") AS TaskStatus FROM ParentTasks AS P;

3
Run and check the results

Select Run and review TaskStatus for each TaskID. A task with at least one null DateComplete should show Not Complete; otherwise, it shows Complete.

4
Save the query

Press Ctrl+S or select Save, enter a query name, and select OK.

Use DCount to find unfinished subtasks in an Access query
Tasks without subtasks: This query also returns Complete when a parent has no related subtasks, because none have a null completion date. If that is not appropriate, add a separate count of all related subtasks and handle a zero count separately.
Free Microsoft Office alternative

Track task lists in WPS Office

WPS Office is a free, lightweight alternative for working with documents and spreadsheets. Its familiar interface and Microsoft Office format compatibility make it easy to move task lists into WPS, though it does not run Microsoft Access database queries.

Track task and completion dates in WPS SpreadsheetsOpen and save Microsoft Excel XLSX and Word DOCX filesUse a familiar interface for everyday office workMove existing Office files into a lightweight suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does a task with no subtasks show as complete?

DCount returns zero when there are no related records, so the example finds no unfinished subtasks. Add a separate DCount for all related subtasks if you want to display a different status when the count is zero.

What does Is Null check in the query?

The criterion DateComplete Is Null finds subtask records with no completion date. DCount counts those records for the current parent TaskID.

Can I use the query with different table and field names?

Yes. In SQL View, replace ParentTasks, Subtasks, TaskID, and DateComplete with the corresponding names in your database. The example assumes TaskID is numeric; text identifiers need different criteria formatting.

Does the query update the parent task record?

No. It displays a calculated TaskStatus in the query results. It does not write a status value to the parent table.