is it possible to 'see' which field has the focus?

alaric

Registered User.
Local time
Today, 16:10
Joined
Sep 6, 2004
Messages
50
Hi,

I have a form with lots of textboxes. I dont want to write the same code for all of the textboxes, when the user enters the field.

Me.txtboxABC.SelStart = 0
me.txtboxABC.backcolor=10092543

when the user leaves the field
me.txtboxABC.backcolor=-2147483643

So, I think i just need to know what field has the focus to write my sub


thx
Al
 
You can use conditional formatting to achieve that result. It will be a lot easier.
 
thx,

for as far as my knowledge goes,
you are right about the color changes , but what about the first postion?
the form as an ADD student form and I would like the cursor(always) to start at the leftmost postion in the textbox.
Now you click on any postion in a textbox and start typing.

thx
Al
 

Users who are viewing this thread

Back
Top Bottom