Navigating datasheets

You can use datasheet statements in scripts to navigate, read from and write to local or external datasheets, limit the data in a datasheet, and return values from datasheets. See Datasheet statements.

Use datasheet statements if:

Note: You cannot use datasheet statements if the datasheet is associated with a script.

1. Add the statements to perform.

2. Before the statements you want to use datasheet values in, add a variable equal to the OpenRecordset statement and datasheet to access.

The OpenRecordset syntax is OpenRecordset("DatasheetName").

Note: If the datasheet uses a script-generated query to retrieve data during playback, add a variable equal to the OpenRecordsetQuery statement. See OpenRecordsetQuery.

3. Add variables for each datasheet column used in the script. Set each variable equal to the GetRowValue statement.

The GetRowValue syntax is GetRowValue (Recordset, "ColumnName").

4. Select the statement you want to assign data to.

5. Choose Script > Edit Statement. The Edit Statement dialog box opens.

6. Select Expression.

7. Enter the variable that contains the datasheet column to use.

8. Click OK.

The datasheet reference is added to the statement.