A
Al
Stephen,
I posted this reply in the wrong newsgroup before I left
on vacation last week. I have been deperately trying your
suggestion below but I haven't had any luck. I don't
understand the reference to "the control's RTF property."
I'm still a novice on the VBA side of Access and would
greatly appreciate your advice on how to accomplish this.
I assumed that the control referred to is a Richtext box
but I don't understand the RTF property.
Our correspondence from a previous post is listed below.
TIA,
Al
----------------
You cannot do this in a Report at runtime, period. To get
around it you will have to programmatically set the
control's RTF property instead:
1) Read the disk based TextFile into a string
2) Set the control's RTF property during the section's
event housing the control.
HTH
Stephen Lebans
http://www.lebans.com
I just tried the code on the Form_Open event and it worked
fine. Is there a method I can use on the Report_Open
event? I think that's where the problem is.
TIA
Al
-----Original Message-----
If you are using the MS Rich Text ActiveX control then the
code I posted will work. What control are you using?
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can
benefit.
Thank you for your reply, Stephen. I tried that and got
the following error: Run-time error '2771' The bound or
unbound object frame you tried to edit doesn't contain an
OLE object.
Any ideas?
Al
-----Original Message-----
The correct syntax would be something like:
Me.RichText1.OBject.Filename = "C:\Filename.rtf"
HTH
Stephen Lebans
http://www.lebans.com
I have a basic question that I can't seem to find an
answer to anywhere... How do you load a file into a
RichText Box using Access 2000? I have tried the method I
found on different news groups:
RichText1.Loadfile "FileName.rtf"
This does not work and generates Run-time error '438'
Object doesn't support this property or method.
Is .Loadfile only accepted in VB and not VBA? Do I need
to add a Common Dialog Control?
Any help to point me in the right direction would be
greatly appreciated.
TIA,
Al
I posted this reply in the wrong newsgroup before I left
on vacation last week. I have been deperately trying your
suggestion below but I haven't had any luck. I don't
understand the reference to "the control's RTF property."
I'm still a novice on the VBA side of Access and would
greatly appreciate your advice on how to accomplish this.
I assumed that the control referred to is a Richtext box
but I don't understand the RTF property.
Our correspondence from a previous post is listed below.
TIA,
Al
----------------
You cannot do this in a Report at runtime, period. To get
around it you will have to programmatically set the
control's RTF property instead:
1) Read the disk based TextFile into a string
2) Set the control's RTF property during the section's
event housing the control.
HTH
Stephen Lebans
http://www.lebans.com
I just tried the code on the Form_Open event and it worked
fine. Is there a method I can use on the Report_Open
event? I think that's where the problem is.
TIA
Al
-----Original Message-----
If you are using the MS Rich Text ActiveX control then the
code I posted will work. What control are you using?
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can
benefit.
Thank you for your reply, Stephen. I tried that and got
the following error: Run-time error '2771' The bound or
unbound object frame you tried to edit doesn't contain an
OLE object.
Any ideas?
Al
-----Original Message-----
The correct syntax would be something like:
Me.RichText1.OBject.Filename = "C:\Filename.rtf"
HTH
Stephen Lebans
http://www.lebans.com
I have a basic question that I can't seem to find an
answer to anywhere... How do you load a file into a
RichText Box using Access 2000? I have tried the method I
found on different news groups:
RichText1.Loadfile "FileName.rtf"
This does not work and generates Run-time error '438'
Object doesn't support this property or method.
Is .Loadfile only accepted in VB and not VBA? Do I need
to add a Common Dialog Control?
Any help to point me in the right direction would be
greatly appreciated.
TIA,
Al