stop highlighting and blinking cursor

  • Thread starter Thread starter Angi
  • Start date Start date
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!
 
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.
 
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
 
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.
 
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.
 
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.
 
Back
Top