stop highlighting and blinking cursor

A

Angi

OK...I might be asking for too much here. I want to stop the only
enabled field on the form from having a blinking cursor and
highlighting. It has an OnClick event, so I can't disable it. I've
already set the tab stop property to No, but like I said, it's the only
enabled field. Is this possible? TIA!
 
G

Graham Mandeno

Hi Angi

Add a small command button to your form, and set its Transparent and TabStop
properties to Yes. It will have the focus, but will not be visible.
 
A

Angi

Graham,
Thanks for the reply! I actually did that already. Found that on the
Access Web website. The problem is when the user clicks the field to
view the info, the cursor stays there and blinks. If they try to get
out of it with the keyboard, it highlights. I've tried changing the
control from a text box to a label, but I can't get the code (if
statement referring to another control) to work with a label. Like I
said, am I asking for too much here??

thx,
ang
 
J

John Nurick

Hi Angi,

It's simpler to disable the control and cover it with a transparent
commandbutton the same size, with the code in the commandbutton's Click
event.
 
G

Graham Mandeno

Hello again

If all you need is for the code to respond to a click event, then you could
lock and disable the textbox and place your transparent command button over
the top of the textbox. Then move the click event code from the textbox to
the command button.
 
A

Angi

One more thing...i'll start a new post if I need to. Is there a way to
change the cursor to a hand when it's over the button? I know it has
to do with the mouseover event, but how do I tell it what picture to
use? Thanks.
 

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