Mouse Pointer

P

proficient

I am in need of a desperate help. I am running ACCESS 2003, and would
like the mouse pointer to change to a hand when it is rolled over a
COMMAND BUTTON. Please help
 
G

Gary Townsend \(Spatial Mapping Ltd.\)

unfortunately this probably won't be possible as the buttons in access do
not have an OnMouseOver event the only way to get it to change to a hand is
if you enter an address in the Hyperlink Address property of the button but
the minute you click that it will open a browser.

Of course there may be another way that someone else knwos of
 
D

Dirk Goldgar

"Gary Townsend (Spatial Mapping Ltd.)"
unfortunately this probably won't be possible as the buttons in
access do not have an OnMouseOver event the only way to get it to
change to a hand is if you enter an address in the Hyperlink Address
property of the button but the minute you click that it will open a
browser.

Command buttons do have a MouseMove event that can be used instead of a
MouseOver event. See this link for code to set the mouse cursor:

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

With that code installed in a standard module, all you need to do is set
the command button's OnMouseMove property to:

=MouseCursor(32649)

Access will automatically set the mouse cursor back to the normal arrow
when you move it off the control.
 
G

Guest

I am in need of a desperate help. I am running ACCESS 2003, and would
like the mouse pointer to change to a hand when it is rolled over a
COMMAND BUTTON. Please help

You need to learn how to use ON MOUSE MOVE of Visual basic it is simple but
cute! =)
 
G

Gary Townsend \(Spatial Mapping Ltd.\)

Thanks Dirk that's useful to know, and i stand corrected :)

Gary Townsend
Spatial Mapping Ltd.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top