In addition to tina's suggestion, you can use "levels" of conditions in a
macro by this type of structure (example assumes that you're using the value
of a textbox (named txtBox) on a form (named FormName) as the decision
maker:
Condition: Forms!FormName!txtBox = 10
Action: SetValue
Control Name: Forms!FormName!txtBoxNewOne
Expression: 12
Condition: . . .
Action: StopMacro
Condition: (blank)
Action: SetValue
Control Name: Forms!FormName!txtBoxNewOne
Expression: 19
This is similar to an If..Then...Else structure. If the textbox contains the
value of 10, the macro will do the first SetValue action and, because of the
three dots in the Condition column for the second action (StopMacro), it
will do that action too. If the textbox contains a value other than 10, the
macro jumps to the first action whose Condition cell does not contain the
three dots.
--
Ken Snell
<MS ACCESS MVP>