Combine fields using a calculated data type

Reduce data entry and errors by using calculated fields to populate fields with the results of math calculations, like addition and multiplication; to concatenate data from separate fields, like first and last name; or to calculate dates, like order date plus five days.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Back to previous page Go to next page

Use calculated fields to:

  • Calculate values that don’t exist in your data.

  • Specify criteria for queries.

For example, combine first and last name data to display in a full name field, like this:

[First Name] + " " + [Last Name]

The plus signs (+) combine the value in the First Name field, a space character (a space enclosed in quotation marks), and the value in the Last Name field.

Or calculate the quantity, price, and tax rate for each item in an order to display the total price, like this:

([Quantity]*[Unit Price])+([Quantity]*[Unit Price]*[Tax Rate])

Note: The calculation can’t include fields from other tables or queries. The results of the calculation are read-only, but they are usable as values in other calculated fields.

Calculated fields display results based on the data type you chose.

Data type

Results

Example

Text

Displays calculated data as a text string, exactly as typed in the referenced fields.

To display full names, concatenate values from first and last name fields with a space between them. To ensure sortability, remove “A” or “An” from the beginning of a book title.

Number

Displays calculated data as a number, which can be used in other mathematical calculations.

To display minimum inventory level, subtract average quarterly breakage from average quarterly sales.

Currency

Displays calculated data in the selected currency format.

To display order total in the specified currency, multiply order quantity by price per unit.

Yes/No

Displays calculated data as Yes or No. Stores data as a Boolean value.

To display Yes if the discounted total exceeds the minimum needed for free shipping and No if it doesn’t, multiply order total by discount and validate against the minimum purchase amount that qualifies for free shipping.

Date/Time

Displays calculated data as a date or a time stamp.

To display estimated delivery date, add estimated shipping time to order date.

Try it!

  1. Select a table.

    Selecting a table in Access
  2. Select Click to Add > Calculated Field, and then select a data type.

    Add a new field with the Calculated Field data type
  3. Enter a calculation for the field, and then click OK.

    Create the calculation in the new calculated field

    Type the expression yourself, or select expression elements, fields, and values to put them into the expression edit field.

    Note: In a calculated field, don’t start the expression with an equal sign (=).

  4. In the field heading, type a name for the calculated field and then press Enter.

    Naming a field in an Access table

    Note: To change or edit the output of a calculated field, select the column. Then, select Fields > Modify Expression.

After you add a calculated field to a table, the calculation is done each time you add or change data.

Want more?

Create an expression

Top of page

Share Facebook Facebook Twitter Twitter Email Email

Was this information helpful?

Great! Any other feedback?

How can we improve it?

Thank you for your feedback!

×