A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Set focus to end of data



 
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2008, 04:59 PM posted to microsoft.public.access.forms
dbl
external usenet poster
 
Posts: 15
Default Set focus to end of data

Hi I have a memo field which some time has a fair few note in it.

I use the following to date stamp it

Me.Comments4 = Comments4 & " " & Now() & " "
Me.Comments4.SetFocus

how do I get the cursor to be at the end of all the data entered into the
field ready to start typing?

At the moment it highlights all the data.

Thanks Bob


  #2  
Old April 23rd, 2008, 05:17 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Set focus to end of data

On Wed, 23 Apr 2008 16:59:55 +0100, dbl wrote:

Hi I have a memo field which some time has a fair few note in it.

I use the following to date stamp it

Me.Comments4 = Comments4 & " " & Now() & " "
Me.Comments4.SetFocus

how do I get the cursor to be at the end of all the data entered into the
field ready to start typing?

At the moment it highlights all the data.

Thanks Bob


Me.Comments4.Selstart = Len(Me.Comments4)
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old April 23rd, 2008, 06:13 PM posted to microsoft.public.access.forms
Bob[_37_]
external usenet poster
 
Posts: 14
Default Set focus to end of data

Thanks sorted.

Bob

"fredg" wrote in message
...
On Wed, 23 Apr 2008 16:59:55 +0100, dbl wrote:

Hi I have a memo field which some time has a fair few note in it.

I use the following to date stamp it

Me.Comments4 = Comments4 & " " & Now() & " "
Me.Comments4.SetFocus

how do I get the cursor to be at the end of all the data entered into the
field ready to start typing?

At the moment it highlights all the data.

Thanks Bob


Me.Comments4.Selstart = Len(Me.Comments4)
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail



  #4  
Old May 13th, 2008, 07:24 PM posted to microsoft.public.access.forms
Bob[_37_]
external usenet poster
 
Posts: 14
Default Set focus to end of data

That works fine thanks

Bob
"fredg" wrote in message
...
On Wed, 23 Apr 2008 16:59:55 +0100, dbl wrote:

Hi I have a memo field which some time has a fair few note in it.

I use the following to date stamp it

Me.Comments4 = Comments4 & " " & Now() & " "
Me.Comments4.SetFocus

how do I get the cursor to be at the end of all the data entered into the
field ready to start typing?

At the moment it highlights all the data.

Thanks Bob


Me.Comments4.Selstart = Len(Me.Comments4)
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.