Set focus to end of data

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
 
F

fredg

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