Sets or returns a value indicating the approximate location of the current record in the Recordset object based on a percentage of the records in the Recordset.
The setting or return value is a Float between 0.0 and 100.00.
Syntax
VOIDSetPercentPosition(FLOAT f);
FLOATGetPercentPosition(VOID);
Set Parameters
Type | Example | Description |
FLOAT | f | A Float between 0.0 and 100.00. |
Remarks
To indicate or change the approximate position of the current record in a Recordset object, you can check or set the PercentPosition property. When working with a dynaset- or snapshot-type Recordset object opened directly from a base table, first populate the Recordset object by moving to the last record before you set or check the PercentPosition property. If you use the PercentPosition property before fully populating the Recordset object, the amount of movement is relative to the number of records accessed as indicated by the RecordCount property. Use the MoveLast method to move to the last record.
Note that using the PercentPosition property to move the current record to a specific record in a Recordset object isn't recommended—the Bookmark property is better suited for this task.