How to code this

S

SF

Hi,

I have just converted my DB to Access 2007. I have a control that uses
Lebans RTF2, now I want to convert the content in RTF2 to another RTF field
using Access 2007. I cannot find any converter so I decide to write code to
do what I normally do manually.

The manual step that I have done is

Go to the RTF2 control (Desck)
Block the text
Copy it (Ctrl + C)
Move to RTF control (text40)
Paste It (Ctrl + V)

Now I want to capture these steps and code it on a button, but I stuck with
the following code:

Me.Ms_Desc_k.SetFocus
SendKeys "^C" '', True
Me.Text42.SetFocus
SendKeys "^V" '', True

SF
 
D

Douglas J. Steele

How about a simple

Me.Text42 = Me.Ms_Desc_k

?

If all you want is some of the content of Ms_Desc_k, look at the SelText
property.
 

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

Top