Create a field that performs custom calculations or manipulates field values in a query

Create a field that performs custom calculations or manipulates field values in a query

You can create a new field that displays the results of a calculation you define with an expression.

  1. Open the query in Design view.

  2. Do one of the following:

    Brackets around field names in an expression

    Replace Expr1 to change the expression's default field name

    You can select ExprN and type a more descriptive name, such as NewPrice.

  3. If the expression includes one or more aggregate functions (Sum, Avg, Count, Min, Max, StDev, or Var), and if the design grid includes another field or fields that you want to use for grouping, click Totals on the toolbar (unless the Total row is already displayed). Leave Group By in the Total cell for the grouping field, and in the calculated field, change Group By to Expression.

    To group records, add Group By and Expression in the Total row

  4. If you want, do any of the following to complete the query:

Notes