473,320 Members | 1,841 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,320 software developers and data experts.

Change default tab behavior -> don't highlight text?

Hi,

Is there a way to have the text not be selected when you tab onto a
field? (All forms, all fields.)

Is there a way to keep a form from advancing to the next record when
you press tab on the last field, and instead move the cursor back to
the first field?

Nov 19 '07 #1
3 6004
Do**@NoEmail.com wrote in news:fho1k356g59moof32h8usn6gb3dsdphcq1@
4ax.com:
Hi,

Is there a way to have the text not be selected when you tab onto
a
field? (All forms, all fields.)
yes. From the main menu, tools, options, behaviour entering field;
choose an option that pleases you, the default obviously does not.

Is there a way to keep a form from advancing to the next record
when
you press tab on the last field, and instead move the cursor back
to
the first field?
Yes, in the form's properties, set the cycle property to Current
Record. (it's in the Other tab.
>


--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Nov 19 '07 #2
Perfect. Thanks.
On 19 Nov 2007 01:12:54 GMT, Bob Quintal <rq******@sPAmpatico.ca>
wrote:
>Do**@NoEmail.com wrote in news:fho1k356g59moof32h8usn6gb3dsdphcq1@
4ax.com:
>Hi,

Is there a way to have the text not be selected when you tab onto
a
>field? (All forms, all fields.)
yes. From the main menu, tools, options, behaviour entering field;
choose an option that pleases you, the default obviously does not.

>Is there a way to keep a form from advancing to the next record
when
>you press tab on the last field, and instead move the cursor back
to
>the first field?
Yes, in the form's properties, set the cycle property to Current
Record. (it's in the Other tab.
>>

--
Bob Quintal

PA is y I've altered my email address.
Nov 19 '07 #3

<Do**@NoEmail.comwrote in message
news:fh********************************@4ax.com...
Hi,

Is there a way to have the text not be selected when you tab onto a
field? (All forms, all fields.)
This code puts the cursor at the end of the current text in a control;

Public Sub TextEnter(RHS As TextBox)
With RHS
.SelLength = 0
.SelStart = Len(.Text)
End With
End Sub

You call it via the Enter event of the control;

Private Sub EmployeeName_Enter()
Call TextEnter(Me.EmployeeName)
End Sub
Nov 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: deko | last post by:
I have a textbox in a form into which users enter a string to execute a search. After the user presses Enter, I'd like the focus to go back to the textbox, but the default behavior of the Enter...
0
by: silesius | last post by:
I've been using VS 2003 to develop a webapplication using C#. Today I exported the application to a remote webserver I begun experiencing problems. It's a simple application that retrieves some...
2
by: Jiho Han | last post by:
I was wondering whether it was possible to change the default ASP.NET compilation behavior. I know that there is <compilation> element in the config where you can specify quite a few things...
2
by: Flip | last post by:
On my current form, when I hit the enter key in a texbox, the form appears to resubmit itself, but it's not actually doing a submit (or so I think?). I would like to have the enter button fire the...
6
by: Robert_5032 | last post by:
when our users press "Search and Replace" all is fine exept that they ALWAYS have to change the criteria "Match the hole field" to "Part of the field" (ruffly spelled...(swedish lang)). -Is there...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
39
by: Alan Isaac | last post by:
This may seem very strange, but it is true. If I delete a .pyc file, my program executes with a different state! In a single directory I have module1 and module2. module1 imports random and...
0
by: Mozis | last post by:
Greetings, I am using pyuniit for my test cases. I want to change the default behavior to report the errors. I believe it calls TextTestRunner class before calling my test_class(which is...
3
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, we've got a strange problem here: We've created an ASP.NET 2.0 web application using Membership.ValidateUser() to manually authenticate users with our website. The problem is: If the...
2
by: Winks | last post by:
In the 2003 version I was able to change the default "Look In" and "Match" settings for the Find dialog box. I have looked all over 2007 and cannot find where to set the defaults. Can anyone...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.