Storing an SQL query in a fieldYou can store an SQL query in a text field for use with the Import Records script step or Execute SQL script step.
• When you execute a stored query, error checking is performed at runtime only. Use Get(LastError) function, and then use Get(LastODBCError) function to return the last readable error string that is generated by the ODBC driver.
• You can store a query in a global field to guarantee the same query is executed regardless of which record you are on.