onlastclick Event

             

Occurs when the user presses and releases the RecordsetNavbar object's "Last" button.

Syntax

object_onplastclick

Parameters

object

A RecordsetNavbar script object.

Remarks

The event occurs when the user uses the mouse or the spacebar to press the button.

The RecordsetNavbar uses a unique event for each of its four buttons. The events are onfirstclick, onpreviousclick, onnextclick, and onlastclick.

For HTML buttons created by the Button object, use the onclick event.

Example

You can use the onlastclick event to cancel the navigation for the Recordset to which the RecordsetNavbar is bound.

Sub myRSNavbar_onlastclick()
   if sUserName = "Frank" then
      ' don't let Frank move these recordsets around, 
      ' he'll run the server right into the ground
      myRSNavbar.cancelOperation()
   end if
End Sub