Goto end of a memo field

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?
 
F

Fredg

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.
 

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

Similar Threads


Top