Track Computer Inventory and Assignment History in Microsoft Access
Question details
Create a Microsoft Access inventory system that tracks computers, current users, and assignment history.

- 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.
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.
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.
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.
Use Create > Table Design to make an Employees table with EmployeeID as an AutoNumber primary key and fields such as EmployeeName. Save the 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.
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.
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.
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.
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.

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.

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.




