simple question, I think

D

David

Hello all,
How can I get the mouse pointer to change to a HAND when it mouses over a
Clickable label with event code behind it?

The very basics, I seemingly can not understand this concept.

I have reviewed this link, but still am clueless...

http://www.mvps.org/access/api/api0044.htm

Any assistance would be greatly appreciated.
 
R

Rob Oldfield

Paste the code from that page into a module and then, to use it, all that
you have to do is add a single line into the mouse move event of the control
you want to affect...

Private Sub lblName_MouseMove(....standard arguments...)
MouseCursor (IDC_HAND)
End Sub
 
P

Piri

You could also look at using the hyperlink functionality - e.g.

First, create a dummy (empty) macro and call it a name you will
recognise as belonging to your label.

In design view open the label's properties and select the "All" tab.

In the Hyperlink SubAddress open the event builder (Insert Hyperlink
dialogue), and from the lower selection (Named Location in File) -
Browse - select your macro for that label.

Hope this helps.
 
Top