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

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.