The workflow scripting environment provided by Access Workflow Designer reflects standard code coloration and has a basic script verification feature. Script is created, edited, and viewed on the Shared Script tab of the Workflow Process pane in the Access Workflow Designer.
To add script to a workflow process, first you must create workflow actions that are used as events to trigger script. For details, see Adding and Modifying Actions for States.
To view available actions
All available actions for the selected state are displayed in the Actions list on the right side of the Design tab. You can select an action in the list to view information about the action.
To add code to workflow actions
The Shared Script tab of the workflow diagram is displayed, and the insertion point is placed in front of the validation script procedure for the selected action.
Remember this validation script procedure must return True for the action script procedure to be executed. Therefore, if you modify this function, be sure it returns a Boolean value of True or False.
Important If your script updates any rows, you must have an OnChange event for the state (one is added by default when you create a new state). You are not required to script the OnChange event, but it must exist in the workflow process to support any updates. For example, if you update the Assigned to column in the Issue Tracking table, the workflow must have an associated OnChange event.