| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > Code Templates >====== Call Procedure As Lookup code template ====== | [[tplcodecallprocedureextended.htm|{{btn_prev_n.gif|Previous page}}]][[templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[tplcodeclosecurrentwindow.htm|{{btn_next_n.gif|Next page}}]] | | || This Code template calls a procedure to select a record. It sets a variable called RequestCompleted to advise whether the lookup was successful. | **Lookup Procedure** | Specifies the procedure to call. | | **Code before** | Type in any executable code to execute before performing the lookup. Multiple statements can be used if separated by a semicolon. | | **Code After, Completed** | Type in any executable code to execute after completing a lookup. Multiple statements can be used if separated by a semicolon. | | **Code After, Canceled** | Type in any executable code to execute if the lookup is canceled. Multiple statements can be used if separated by a semicolon. | Press the **E **button where appropriate to call the Expression Editor. This dialog is used to help you construct syntactically correct expressions to use in the appropriate prompts.