Specifies an SQL statement to use to refresh a single record. Syntax: property RefreshRecordSQL: TStrings; Description: Set RefreshRecordSQL to an SQL statement to use when refresh a single record from a database. Statements can be parameterized queries. To create a statement at design time, use the RefreshRecordSQL editor to create statements, such as: SELECT o.OrderNo, o.CustNo, c.Company FROM orders o At run time, an application can write a statement directly to this property to set or change the RefreshRecord statement. As the example illustrates, RefreshRecordSQL supports an extension to normal parameter binding. To retrieve the value of a field as it exists prior to application of cached updates, the field name with 'OLD_'. This is especially useful when doing field comparisons in the WHERE clause of the statement. |