logo
search
Others

How to Calculate a Running Total for Labor Time in Microsoft Access

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

Question details

The user needs to multiply labor time by the number of employees and calculate a cumulative running total ordered by release date or ticket number.

Product
Microsoft Access
Device & OS
not provided
Scenario
Tracking cumulative rework or labor time across different tickets or release dates in a database.
Observed behavior
Requires a query to compute a running sum of labor time while properly accounting for Access storing time values as fractions of a day.
Before you start

Ensure your tracking log query already includes fields for Release Date, Ticket, Labor Time, and Number of People before building the cumulative subquery.

Solution 1Recommended

Use a Correlated Subquery by Release Date

This is the standard SQL method for calculating a running total over time by comparing dates in the current row to previous rows.

A correlated subquery calculates a value for each row returned by the main query. By asking Access to sum all labor hours where the release date is less than or equal to the current row's release date, you generate a running total.

1
Open Query Design

Open Microsoft Access, navigate to the Create tab, and click Query Design.

2
Switch to SQL View

Right-click the query tab at the top of the workspace and select SQL View from the context menu.

3
Paste the Correlated Subquery

Enter the following SQL code: SELECT Q1.Status, Q1.[Release Date], Q1.Ticket, Q1.Labor, Q1.[# of People], (SELECT Sum(Q2.Labor * Q2.[# of People]) FROM [Tracking Log Query] AS Q2 WHERE Q2.[Release Date] <= Q1.[Release Date]) AS TimeSpentToDate FROM [Tracking Log Query] AS Q1 ORDER BY Q1.[Release Date];

4
Run the Query

Click the Run button (!) in the Design ribbon to view the cumulative totals ordered by the release date.

Table Name Matching: Ensure your base query or table is named exactly '[Tracking Log Query]'. If it has a different name, update the SQL text to match your actual data source.
Free Microsoft Office alternative

Track Labor Time and Totals Easily with WPS Spreadsheet

Complex SQL queries in Microsoft Access can be difficult to manage. WPS Spreadsheet provides a lightweight, intuitive, and free Microsoft Office alternative. You can calculate labor time and running totals seamlessly using simple spreadsheet formulas while maintaining full compatibility with Microsoft file formats.

  1. 1. Open WPS Spreadsheet: Create a new workbook or open your existing Excel tracking log.
  2. 2. Organize Your Data: Create columns for Ticket, Release Date, Labor Time, and Number of People.
  3. 3. Calculate the Running Total: Use a simple formula like =SUM($E$2:E2) in the running total column and drag it down to calculate instantly.
100% free and lightweight alternative to Microsoft OfficeFully compatible with Microsoft Excel (.xls, .xlsx) formatsCalculate running totals instantly with simple SUM formulasFamiliar, user-friendly interface requires no SQL knowledge
microsoft office alternative - wps office

Frequently Asked Questions

Why do my time calculations look incorrect in Microsoft Access?

Microsoft Access stores time values internally as fractions of a day (e.g., 12 hours is stored as 0.5). To view these values as standard hours or minutes, you need to multiply the time field by 24 (for hours) or 1440 (for minutes).

What is a correlated subquery in Access?

A correlated subquery is a query nested inside another main query that references values from the outer query. It evaluates data row by row, making it the standard method in SQL for calculating running totals or cumulative sums.

How do I multiply labor time by the number of employees in a query?

In your query design grid, you can create a new calculated column by directly multiplying the two fields. For example, type TotalLabor: [Labor] * [# of People] in an empty Field cell.