Skip to content

Latest commit

 

History

History
60 lines (33 loc) · 2.53 KB

Access.NavigationButton.Click.md

File metadata and controls

60 lines (33 loc) · 2.53 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
NavigationButton.Click event (Access)
vbaac10.chm14077
vbaac10.chm14077
Access.NavigationButton.Click
b3a11a9a-41ae-625b-1fa2-c771039957b1
02/12/2019
medium

NavigationButton.Click event (Access)

The Click event occurs when the user presses and then releases a mouse button over an object.

Syntax

expression.Click

expression A variable that represents a NavigationButton object.

Return value

Nothing

Remarks

This event applies to a control containing a hyperlink.

To run a macro or event procedure when this event occurs, set the OnClick property to the name of the macro or to [Event Procedure].

For a control, this event occurs when the user:

  • Clicks a control with the left mouse button. Clicking a control with the right or middle mouse button does not trigger this event.

  • Clicks a control containing hyperlink data with the left mouse button. Clicking a control with the right or middle mouse button does not trigger this event. When the user moves the mouse pointer over a control containing hyperlink data, the mouse pointer changes to a "hand" icon. When the user clicks the mouse button, the hyperlink is activated, and then the Click event occurs.

  • Selects an item in a combo box or list box, either by pressing the arrow keys and then pressing the Enter key or by clicking the mouse button.

  • Presses Spacebar when a command button, check box, option button, or toggle button has the focus.

  • Presses the Enter key on a form that has a command button whose Default property is set to Yes.

  • Presses the Esc key on a form that has a command button whose Cancel property is set to Yes.

  • Presses a control's access key. For example, if a command button's Caption property is set to &Go, pressing Alt+G triggers the event.

Typically, you attach a Click event procedure or macro to a command button to carry out commands and command-like actions. For the other applicable controls, use this event to trigger actions in response to one of the occurrences discussed earlier in this topic.

Use a CancelEvent action in a DblClick macro to cancel the second Click event. For more information, see the DblClick event topic.

To distinguish between the left, right, and middle mouse buttons, use the MouseDown and MouseUp events.

[!includeSupport and feedback]