Others

Track Computer Inventory and Assignment History in Microsoft Access

Steve KSteve K Nov 27, 2026 869 views

Question details

Create a Microsoft Access inventory system that tracks computers, current users, and assignment history.

Track Computer Inventory and Assignment History in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
The user wants to manage approximately 250 computers, including inventory numbers, serial numbers, employees, and past assignments.
Observed behavior
The desired system links each computer to its assignment records and provides a way to view both current users and historical events.
Before you start

List the computer and employee fields you already have, and check that each computer and employee has a unique ID. Decide which event types you will use, such as Assignment, Return, and Repair.

Solution 1Recommended

Create Related Tables and a Computer Assignment Subform in Access

Use separate computer, employee, and assignment tables to preserve each device's history and manage it from a form.

Keep computer details in one table and add a new event record whenever a device is assigned, returned, or repaired. Do not overwrite an old assignment when a device changes hands.

The latest Assignment or Return event determines whether a computer has a current user. Repair events remain in the history but do not by themselves change the current user.

1
Create the computer table

In Access, select Create > Table Design. Add ComputerID as an AutoNumber primary key, plus fields such as InventoryNumber and SerialNumber. Save the table as Computers.

2
Create the employee table

Use Create > Table Design to make an Employees table with EmployeeID as an AutoNumber primary key and fields such as EmployeeName. Save the table.

3
Create the event table

Create a ComputerAssignments table with AssignmentID as an AutoNumber primary key, ComputerID and EmployeeID as Number fields with the Long Integer field size, AssignmentDate as Date/Time, and AssignmentType as Short Text. Require ComputerID, AssignmentDate, and AssignmentType; allow EmployeeID to be blank for events that do not involve an employee.

4
Link the tables

Open Database Tools > Relationships and add all three tables. Drag Computers.ComputerID to ComputerAssignments.ComputerID and Employees.EmployeeID to ComputerAssignments.EmployeeID. Select Enforce Referential Integrity for each relationship, then click Create and save the relationships.

5
Build the form and subform

Select Create > Form Wizard. Add the computer fields from Computers and the event fields from ComputerAssignments. Choose to view the data by Computers and select Form with subform, then finish the wizard. If needed, open the main form in Design View, select the subform control, and set its Link Master Fields and Link Child Fields properties to ComputerID.

6
Record and review events

Open the computer form in Form View, find a device, and add each Assignment, Return, or Repair in the subform with its date and applicable employee ID. Enter Assignment for a new user and Return when the device is returned; use consistent event names.

7
Find current assignments

Select Create > Query Design, switch to SQL View, and paste the following query: SELECT A.ComputerID, A.EmployeeID FROM ComputerAssignments AS A WHERE A.AssignmentType='Assignment' AND NOT EXISTS (SELECT * FROM ComputerAssignments AS B WHERE B.ComputerID=A.ComputerID AND B.AssignmentType IN ('Assignment','Return') AND (B.AssignmentDate>A.AssignmentDate OR (B.AssignmentDate=A.AssignmentDate AND B.AssignmentID>A.AssignmentID))); Run and save the query. Join its results to Computers and Employees in another query to display inventory numbers and employee names.

Create Related Tables and a Computer Assignment Subform in Access
Interpreting the current-user query: The query lists computers whose latest Assignment or Return event is an Assignment. Computers with no such event or whose latest event is Return are not listed. If events have the same date and time, the higher AssignmentID is treated as later.
Free Microsoft Office alternative

Track a Simple Computer Inventory with WPS Spreadsheet

WPS Office is a free, lightweight, easy-to-use Office alternative with a familiar interface. WPS Spreadsheet can help you maintain a simple inventory and event log in Excel-compatible files for an easier move from Microsoft Office. It does not replace Access relationships, forms, or queries.

Maintain computer details and assignment events in separate spreadsheet sheetsOpen and edit Microsoft Excel formats, including XLSXUse a familiar spreadsheet interface for an easier transition from ExcelWork with a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Why do I need a separate assignment table?

A separate ComputerAssignments table lets you store multiple events for each computer. Replacing an employee ID in the Computers table would otherwise lose the previous assignment.

How do I link an AutoNumber ID to another table?

Create the matching foreign key as a Number field with its Field Size set to Long Integer. Then open Database Tools > Relationships and link the primary key to that foreign key.

How can I tell who currently has a computer?

Find the latest Assignment or Return event for that computer. If it is an Assignment, its EmployeeID identifies the current user; if it is a Return, the computer has no current assignee.

Should a repair record have an employee ID?

Include an EmployeeID when the repair event needs to identify an employee. Otherwise, leave it blank in the ComputerAssignments table; the ComputerID should still identify the device.

Can WPS Spreadsheet run my Access database?

No. WPS Spreadsheet can maintain a simpler Excel-compatible inventory workbook, but it does not run Access database forms, relationships, or queries.