How do I assing RTF text to RTF2 control ?

J

Jason Van Osch

I must be missing something obvious because this just seems like it should
be easy.

I've created a RTF2 activex control in a report. Report name = report1 /
control name = rtf2

I want to assign rtf text to that box. (note: I cannot simply assign the
"data" field of the control to the control that contains the text since
there are 120 RTF2 controls in my report and each will be displaying text
from a different query)

I would figure this would be as simple as using a visual basic command:

setvalue reports![report1]!rtf2 = "whatever" <-------- this doesn't
work

So I tried assigning the value from a control
setvale reports![report1]rtf2 = forms![test]![data] <--------------
same result as the above command

So I did some reading on RTF2 help section, and found a command that lead me
to believe this might work:

set Set report1.rtf.Object = "test" <--------------------------
obviously this didn't work either if Im here begging for help :)

So, could anyone please advise. I would be most grateful for any assistance
you could provide.

Thanks so much in advance

Jason
 

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