I am using Access 2000 and have a Rich Text Box control on
a Report that I want to load with a .doc, or .rtf file
from a path/filename location. (I can change the way the
form that creates these files, saves them)
The problem I'm having is with the .Loadfile event. I get
the error: Run-time error '438', Object doesn't support
this property or method.
Here is the code that is generating this error:
Private Sub Report_Open(LID As Integer)
Dim Pth As String
'REPORT is the field where path is stored
Pth = [Forms]![frmWord].REPORT
IRep.LoadFile (Pth) 'IRep is RTB control
End Sub
End Sub
Do I need to add a Common Dialog Control to the report to
get this to work? What am I doing wrong?
TIA,
Al
Scott McDaniel - 11 Aug 2003 21:44 GMT
Try IRep.Object.LoadFile(Pth)
> I am using Access 2000 and have a Rich Text Box control on
> a Report that I want to load with a .doc, or .rtf file
[quoted text clipped - 18 lines]
> TIA,
> Al
Al - 11 Aug 2003 22:56 GMT
Thank you for your reply. 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-----
>Try IRep.Object.LoadFile(Pth)
[quoted text clipped - 23 lines]
>
>.