Select Text

J

Johnny Bright

Hi there!

In Access 2000 I would like my user to be able to click on some text in a
record on a continuous form and have that block of text selected and copied
to the clipboard to be pasted elsewhere.
This:
Me.Vendor.SelLength = Len(Vendor)
Selects everything to the Right of where I clicked, but I would like it to
select the entire length of text.

This code block in a button....
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
....initially works but when I leave the text box I paste this into in
another form, all that is left behind in the field name (Vendor).

How can I get this to copy just the text or select just the text so it can
be copied.

All answers are greatly appreciated!
 
K

Klatuu

Look in Hel for the SelStart and SelText properties. There is good
information and examples there.
 
Top