By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,397 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,397 IT Pros & Developers. It's quick & easy.

Selecting field contents when TAB in it

P: n/a
Hi,

When users TAB to a field, I want it not to select all field content, but
instead go to either begin or end of the field. This because sometimes user
TAB to a field then type something by mistake, by this loosing old content
from the field

I know Access have setting for Behavior setting field, but this seems global
to Access, not to application, so no matter if I change this setting, if I
run app on a PC where Access have this setting as Select Entire field, it
will still select.

I tried with sendkeys left / right arrow, or home / end, but this don't
seems to work.

Any other idea?

Thanks for answers
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
No solution, except to tell the users, that they can press ESC, and cancel
their entry right until the moment they leave the record they are entering
into.
But most likely there is possible coding for this.

Brgds
Rolfern

"Bogdan Zamfir" <bz*****@despammed.com> wrote in message
news:c2*************@ID-218369.news.uni-berlin.de...
Hi,

When users TAB to a field, I want it not to select all field content, but
instead go to either begin or end of the field. This because sometimes user TAB to a field then type something by mistake, by this loosing old content
from the field

I know Access have setting for Behavior setting field, but this seems global to Access, not to application, so no matter if I change this setting, if I
run app on a PC where Access have this setting as Select Entire field, it
will still select.

I tried with sendkeys left / right arrow, or home / end, but this don't
seems to work.

Any other idea?

Thanks for answers

Nov 12 '05 #2

P: n/a
"R.A.Balder" <R_********@xhotmail.com> wrote in
news:4n*********************@juliett.dax.net:
No solution, except to tell the users, that they can press
ESC, and cancel their entry right until the moment they leave
the record they are entering into.
But most likely there is possible coding for this.

Brgds
Rolfern

Very simple code.
const BSelectAll = 0
const BStartOfField = 1
const BEndOfField = 2
dim iPreviousbehavior as integer

previousbehavior = getoption("behavior entering field")
setoption("behavior entering field", BEndOfField)
....
'do what you will,
...
setoption("behavior entering field", iPreviousBehavior)

Bob Quintal

"Bogdan Zamfir" <bz*****@despammed.com> wrote in message
news:c2*************@ID-218369.news.uni-berlin.de...
Hi,

When users TAB to a field, I want it not to select all field
content, but instead go to either begin or end of the field.
This because sometimes

user
TAB to a field then type something by mistake, by this
loosing old content from the field

I know Access have setting for Behavior setting field, but
this seems

global
to Access, not to application, so no matter if I change this
setting, if I run app on a PC where Access have this setting
as Select Entire field, it will still select.

I tried with sendkeys left / right arrow, or home / end, but
this don't seems to work.

Any other idea?

Thanks for answers



Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.