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

Text selection in a text box

Dear all , am facing a problem in Access 2003 , it may be easy but i couldnt find a solution to it , in a form when you move from one control to another the text in a text box is selected by default , is there a way to avoid the text selection when the text box get the focus?
Nov 29 '06 #1
4 4157
Killer42
8,435 Expert 8TB
Dear all , am facing a problem in Access 2003 , it may be easy but i couldnt find a solution to it , in a form when you move from one control to another the text in a text box is selected by default , is there a way to avoid the text selection when the text box get the focus?
This is from VB6, but may work in Access too.
In the Text1.GotFocus event...
Expand|Select|Wrap|Line Numbers
  1. Text1.SelLength = 0 
Nov 29 '06 #2
this must be done for each text box or combobox in the program is there any other setting that can be done to avoid righting this for each control , the problem is that i have a very large program that was programed using Access 97 , the higlighting property wasnt valid i guess but now i upgrade the program to access 2003 and the higlighting property is causing troubles for the users , is there any global property or setting to avoid this.
Nov 29 '06 #3
Killer42
8,435 Expert 8TB
this must be done for each text box or combobox in the program is there any other setting that can be done to avoid righting this for each control , the problem is that i have a very large program that was programed using Access 97 , the higlighting property wasnt valid i guess but now i upgrade the program to access 2003 and the higlighting property is causing troubles for the users , is there any global property or setting to avoid this.
I'm using Access 2000 at home, but I just found an option under the Keyboard tab, Behavior entering field - settings are:
  • Select entire field
  • Go to start of field
  • Go to end of field
This sounds like what you're after, if you can find it in Access 2003.
Nov 29 '06 #4
yes this work thanks a lot , you are the one
Best regards
Nov 29 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Ed Suominen | last post by:
I'm thinking of implementing a real-time collaborative text editor in Python using Twisted. An initial plan is to use a Twisted PB server daemon that accepts user:password:file connections from...
9
by: lkrubner | last post by:
I've got a function, you can see it below, that is being called onmouseup in the textarea on my main form. The idea is to find a selection if possible and store that text in a global variable. I...
5
by: nboutelier | last post by:
Scenario: you enter "foo bar" into a text field... Is it possible through javascript to select/highlight just "foo"? formObject.select() selects all. I need to select only part of the string....
7
by: William Gill | last post by:
Is there a simple way to cut and paste from a tkinter text widget to an entry widget? I know I could create a mouse button event that triggers a popup (message widget) prompting for cut/paste in...
4
by: Adnan Siddiqi | last post by:
Hi Pardon me if I am not making any sense.What I want to know the cordinates of selected text by user so that i can save/retrieve them later.is It possible.I am lookig for both IE and Firefox...
2
by: ahynes | last post by:
HI folks, I'm a chem engineer with no VB programming knowledge (as you'll see from my question!) I want a script to open a .txt file, insert pre-defined text into the start and end of the...
2
by: ahynes | last post by:
HI folks, I need a script to open a .txt file, insert pre-defined text into the start and end of the file, then close teh saved file with a .nc extension. I'd like to have this so I can run it...
1
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as...
3
by: Dekortage | last post by:
Hi all... I am able to grab the text that a user has selected on a web page, using this code: function moreInfo() { if (!isIE) { var t = window.getSelection(); // act on variable "t";
1
by: wselen | last post by:
Hi everybody, Currently I am working on an function in which I want to tag certain parts of text. This is what I have now : case "djenter": var selection = str; ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.