RTF2 Property is read-only

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm receiving a strange error message when updating the rtfText property on a RTF2 control. The error reports "RTF2 - Property is read-only".

The strange thing is that the property does in fact get updated correctly. The error is not being picked up by my error trapping so I can't work around it that way.

Any ideas how to prevent the error?
 
What event are you updating this prop from?
Are you using the latest verison of the control?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


RobGriff85 said:
I'm receiving a strange error message when updating the rtfText
property on a RTF2 control. The error reports "RTF2 - Property is
read-only".
The strange thing is that the property does in fact get updated
correctly. The error is not being picked up by my error trapping so I
can't work around it that way.
 
The control is unbound and if viewed immediately prior to the update reads "RTF2 Control Design View Window".

The syntax is as follows:

MyRTF.rtfText = rscondcontrol.rtf_notes

I'm using version 1.8 (file version 1.0.0.6). Is version 2 available yet?

Many Thanks
 
Rob can you send me your MDB with exact instructions to duplicate this
error?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


RobGriff85 said:
The control is unbound and if viewed immediately prior to the update
reads "RTF2 Control Design View Window".
 
ActiveX controls( and even bound Access controls) are not fully
instantiated during the Form's Open event. Just move your code into the
Form's Load event.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Moving it into the Form Load event has done the trick.

Thanks Stephen.
 

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

Back
Top