Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / August 2003

Tip: Looking for answers? Try searching our database.

Rich Text Box and Loadfile error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al - 11 Aug 2003 15:23 GMT
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]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.