Set focus to end of data

  • Thread starter Thread starter dbl
  • Start date Start date
D

dbl

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
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top