Returns the name of the last clicked or right-clicked control provided in the Control Name property.
Syntax:
LastClicked()
Parameters:
None
Returns:
The name of the last clicked control.
Note:
The function will not return the name of the last clicked Subform control.
If you are trying to execute some code based on which control the user clicked on, you can also do this by adding the On field to the Click event as shown in the image below.
Prerequisites:
The control must have a control name, or nothing will be returned.