You create an expression by combining identifiers, operators, and values to produce a result. You can either create the expression on your own or use the Expression Builder to help you create the expression.
Create an expression on your own
In the control where you want the result, enter a combination of identifiers, operators, and values. For example, the following expression increases the value displayed in the Freight control on the Orders form by 10 percent:
= [Forms]![Orders]![Freight] * 1.1
Notes
Use the ! operator in an expression if the item that follows is user-defined (an element of a collection).
Use the . (dot) operator if the item that follows is defined by Microsoft Access.
Always precede calculated control expressions by an equal sign (=).
Some expressions produce a true or false result. For example, if you enter this type of expression in the Condition column of a macro, Microsoft Access carries out the specified action only when the expression evaluates to true.
Use the Expression Builder
How?
You can start the Expression Builder from most places where you write expressions, such as in a property sheet, a Criteria cell in the query design grid, or the Macro window.
In a property sheet or the lower pane of the Macro window
Do one of the following:
Start the Expression Builder
by opening a property sheet
To set properties for a form or report, double-click the form selector or the report selector.
Open a macro in macro Design view
If a property has more than one builder associated with it, Microsoft Access displays the Choose Builder dialog box. Click Expression Builder and click OK.
Note If the property box or argument box where you start the Expression Builder already contains a value, that value is automatically copied into the expression box.
In the query design grid or a macro condition
You can start the Expression Builder in a Field or Criteria cell in query Design view or in the Condition column of the Macro window.
Note If the cell or Condition column where you start the Expression Builder already contains a value, that value is automatically copied into the expression box.
Tip
You can also type any part of the expression directly in the expression box.
Microsoft Access copies your expression to the location where you started the Expression Builder. If that location already contains a value, your new expression replaces the value or text.