473,406 Members | 2,220 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,406 software developers and data experts.

On SetFocus, the text in the textbox get selected. I want the prompt to be AFTER the text

Trough code I put focus on a textbox.
My problem is that the existing letters in that text box get selected
(black background) so when users type in new letters, the existing text
is replaced.
-Is there any way to awoid this?
Like some code that do the some thing as a user that mouse clicks AFTER
the text.

My goal is that the users just should type on and Access should ADD
what they type after whatever text is already in the textbox.

Thank you for any info!

Robert

Aug 23 '06 #1
4 8452
Ro*********@yahoo.com wrote:
Trough code I put focus on a textbox.
My problem is that the existing letters in that text box get selected
(black background) so when users type in new letters, the existing text
is replaced.
-Is there any way to awoid this?
Like some code that do the some thing as a user that mouse clicks AFTER
the text.

My goal is that the users just should type on and Access should ADD
what they type after whatever text is already in the textbox.

Thank you for any info!

Robert
Look in help at
SelLength, SelStart, SelText Properties for a text box.

Ron

Aug 23 '06 #2
you can change the behavior in the entire database by opening the database
window and from the menu bar selecting Tools | Options | Keyboard tab and in
the Behavior Entering Field section, choose Go to end of field.

to change the behavior of a specific textbox control, add the following code
to the control's OnEnter event procedure, as

Me!ControlName.SelStart = Me!ControlName.SelLength

change ControlName to the correct name of the control, of course.

hth
<Ro*********@yahoo.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Trough code I put focus on a textbox.
My problem is that the existing letters in that text box get selected
(black background) so when users type in new letters, the existing text
is replaced.
-Is there any way to awoid this?
Like some code that do the some thing as a user that mouse clicks AFTER
the text.

My goal is that the users just should type on and Access should ADD
what they type after whatever text is already in the textbox.

Thank you for any info!

Robert

Aug 23 '06 #3
Tools, Options, Keyboard and select Go to end of field in the Behavior
entering field box.

Ro*********@yahoo.com wrote:
>Trough code I put focus on a textbox.
My problem is that the existing letters in that text box get selected
(black background) so when users type in new letters, the existing text
is replaced.
-Is there any way to awoid this?
Like some code that do the some thing as a user that mouse clicks AFTER
the text.

My goal is that the users just should type on and Access should ADD
what they type after whatever text is already in the textbox.

Thank you for any info!

Robert
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200608/1

Aug 23 '06 #4
"Tools | Options | Keyboard tab and in
the Behavior Entering Field section, choose Go to end of field."

I worked perfect!
Thank you very much all!

Robert

Aug 23 '06 #5

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

Similar topics

6
by: KS | last post by:
I have made a WebForm with log ON/OFF off users. There is a label that shows the total count off users logged on stored in Application("UserCount") It works fine if the users logs out WITH THE...
4
by: Mad Scientist Jr | last post by:
i am trying to set focus to a specific control depending on the outcome of a validator control and it is not working. none of these methods are working to setfocus: 1....
9
by: Aaron Smith | last post by:
I am creating a subclassed text box. I want to have a button inside the tetbox. That was the easy part. The part I can't figure out, is how you set the area for the text? If you type a string it...
4
by: AA Arens | last post by:
I use SetFocus to jump from one field to another. That works fine. But one of the focussed fields has default text and this text is selected and the cursor is on the left of it. How to have the...
11
by: Ron L | last post by:
I have a barcode scanner which uses a "keyboard wedge" program so that the data it scans comes through as if it was typed on a keyboard. I am trying to have the data in the barcode be displayed in...
4
by: Andrew | last post by:
hi all, I have a webform that I would like do add some features. How do I : 1) setfocus in a textbox when the page first loads up; and also dynamically when I want to focus on it. 2) highlight...
18
by: Academia | last post by:
I let the use modify the text of a combobox and then I replace the selected item with the new text (in Keyup event). But if he sets the Text property to an empty string ("") that sets the...
4
by: Michael R | last post by:
Hi everyone. I wanna say first, I appritiate a lot the fact that I'm able to ask questions here! I have a form with a textbox that if its value equals to a certain condition, a command button...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
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
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.