473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Selecting field contents when TAB in it

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
2 2003
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jonathan Strange | last post by:
I have a website that uses Forms, and if I complete the form fields, submit the form, realise that there was an error or omission, and then hit the Back button, the form fields are all empty. This...
1
by: Martin Heal | last post by:
I am having problems trying to assign the contents of a Memo table field to a String variable in VB using the following code: Private Function udfBuildSQL(SQLID As Integer) As Variant Dim rs...
1
by: Stu | last post by:
Hi, I am trying to return the data key field value from a dataset when I select a row in a datagrid after the datagrid has been bound to a dataset. When I an the Edit, Update and Cancel row I...
3
by: Strange Cat | last post by:
Hi everyone Is it possible to select the contents in an aspnet textbox? (Like the old textbox selectstart and so on properties) Thanx in advance
3
lwwhite
by: lwwhite | last post by:
(Access 2003) Here's what I want to do: enable users to double-click a field in a datasheet-view subform and thereby save the contents of that field to the Windows clipboard so that they can then...
4
by: paulcrowsnest | last post by:
Hi everyone This is probably really simple, but it has me stumped. I have a form which gets its data from a table called "Dentistry", this table is linked to another table called...
1
by: sudermatt | last post by:
This one is completely baffling. DB Enviornment: MSSQL database Code Environment: ASP / VBscript (obviously) Problem: data from an nText field disappears from conn.execute(sql) recordset. ...
2
by: rekhasc | last post by:
I want to access a field contents which are present in database to labels ..... using acess2007, vb6.0 ,adodb sql = "select Table1.Points,Table1.Images from Table1 " rst.CursorLocation =...
2
by: DeanL | last post by:
Hi guys, I'm using a subform to display a list of values from a single table. The form is showing the values in "continuous forms" view and there will only ever be two different values for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.