Goto end of a memo field

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Presently when I tab to a memo field the entire contents
of the field is highlghted. This makes the contents
easily deleteable(ex hitting space key). I know how to
automatically start at the end of a text field:
Me!fieldname.SelStart = Me!fieldname.SelStart
If I use this in a memo field it goes to the 256th
character. How do I get it to go to the end of all text
entered in a memo field?
 
Chris,
For one thing you haven't written the code correctly.

To go to the end of the field:
Me!fieldname.SelStart = Len(Me!fieldname)

Also, you cannot have any formatting in the Format property of the control.
If you do, the Memo field is truncated to 255 chars.
 
Back
Top