Others

How to Sum Values from a Combo Box Column in Microsoft Access

Amos GikundaAmos Gikunda Nov 3, 2026 870 views

Question details

The user is encountering an error when attempting to calculate the sum of values stored in the second column of a combo box in Microsoft Access.

How to Sum Values from a Combo Box Column in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Building an order entry or tracking system where a combo box holds multiple values, such as an item name and its price, stored within a single table field.
Observed behavior
Summing the second column (price) fails and returns an error because the data is formatted as Short Text and saved as a table-level lookup field.
Before you start

Ensure you have a basic understanding of relational database design, as fixing this error permanently requires restructuring your tables to properly separate your data.

Solution 1Recommended

Normalize Your Database and Convert Data Types

The most reliable way to solve calculation errors in Access is to replace multi-value lookup fields with a normalized database structure and correct numeric data types.

Professional database developers strongly advise against using lookup fields directly in tables to store multiple values and prices. This approach hides the actual underlying data and creates significant problems for calculations and queries.

Instead of storing a product name and a price as Short Text in a single combo box field, you should divide your data into dedicated, related tables.

1
Create dedicated tables

Set up separate tables for Customers, Products, Orders, and Order Details instead of forcing all data into one table.

2
Set the correct data types

Open your Products table in Design View and ensure the Price field is set to the 'Currency' or 'Number' data type, rather than 'Short Text'.

3
Build a main form and subform

Create an Order form for the main transaction details, and insert an Order Details subform to handle multiple line items for each order.

4
Auto-populate the price

Configure your Order Details form so that when a product is selected, its unit price is automatically copied from the Products table into the specific order line.

5
Calculate the final sum

Add a text box to the footer of your subform and use the expression =Sum([PriceField]) to properly calculate the total of the numeric values.

Avoid Table-Level Lookup Fields: Lookup fields should be used on Forms, not directly in Tables. Using them in Tables makes data migration and mathematical queries much more difficult.
Free Microsoft Office alternative

Need a simpler way to manage and calculate data? Try WPS Office

While Microsoft Access is a complex tool for relational databases, many data tracking, calculation, and order management tasks can be easily handled in a powerful spreadsheet. WPS Office provides a highly compatible, free alternative to Microsoft Office for your spreadsheet, document, and presentation needs.

  1. 1. Download the software: Visit the official WPS Office website and download the free installer.
  2. 2. Install WPS Office: Follow the on-screen prompts to complete the quick installation process.
  3. 3. Open WPS Spreadsheet: Launch WPS Spreadsheet to easily input, manage, and sum your pricing data without complex database setup.
Free to download and fully functional for everyday data tasksHigh compatibility with Microsoft Excel (.xlsx) formats for easy data management and complex formulasFamiliar user interface requiring zero learning curveLightweight application that runs smoothly on most operating systems
QA img-9

Frequently Asked Questions

Why does summing a combo box column return a data type error in Access?

If the values inside the combo box are formatted as Short Text, Access cannot perform mathematical operations like SUM on them. You must store the field as a Currency or Number data type in its source table to perform calculations.

Can I extract a specific column from an Access combo box using VBA?

Yes, you can reference a specific column using the Column property in VBA or within an expression. For example, using `Me.ComboBoxName.Column(1)` will retrieve the value of the second column, since the column index is zero-based.

Are multi-value lookup fields recommended in Access tables?

No, database professionals generally advise against using lookup fields directly within tables. They obscure the actual stored data and make queries, calculations, and future data migration significantly more complex.