Sets or returns the value of the On Dbl Click box in the Properties window of one of the objects in the Applies To list. Read/write String.
expression.OnDblClick
expression Required. An expression that returns one of the objects in the Applies To list.
The DblClick event occurs when a user presses and releases the left mouse button twice over an object within the double-click time limit of the system.
The OnDblClick value will be one of the following, depending on the selection chosen in the Choose Builder window (accessed by clicking the Build button next to the On Dbl Click box in the object's Properties window):
If the On Dbl Click box is blank, the property value is an empty string.
The following example associates the DblClick event with the "OK_DblClick" event procedure for the button named "OK" on the "Order Entry" form, if there is currently no association.
With Forms("Order Entry").Controls("OK")
If .OnDblClick = "" Then
.OnDblClick = "[Event Procedure]"
End If End With