GetLast
Applies to
VAccess
Description
Attempts to retrieve the last record in the current index path and returns, as an Integer value, the PSQL status code.
Syntax
object.GetLast [vLockBias]
The syntax for this method has the following parts:
 
Remarks
This method attempts to retrieve the last record in the currently selected index path, set through the IndexNumber property, from the file associated with object. The status code for the operation will be returned by the method and set in the Status property of the control, a value of zero indicating success. A Status Code 9 indicates that there are no records in the current index path.
Example
'Retrieve the record with the most recent date
Customers.IndexNumber = 3 'entry date
Customers.GetLast