Linking a Word doc using OLE

  • Thread starter Thread starter garybeale
  • Start date Start date
G

garybeale

Guest
Hi All,

I'm trying to link a Word document to a bound OLE frame on a form. I can get the doc to load and can double click on it to edit. BUT, I cannot use any other field on the form and if I try to exit I get the following:

"You can't save the record at this time.

RMS may have encountered an error when trying to close the form. If you
close this object now, the data changes you made will be lost. Do you want to
close the database object anyway"

I am using the following code from a command button:

' Specify type of object.
OLEBound7.OLETypeAllowed = acOLELinked
' Specify source file.
OLEBound7.SourceDoc = "c:\FGdb\drwg1.doc"
' Create linked object.
OLEBound7.Action = acOLECreateLink
' Adjust control size.
OLEBound7.SizeMode = acOLESizeZoom

I'm doing something wrong obviously but I can't see what. I've been working on it for four days now and am starting to go cross-eyed.

Any help would be appreciated.

Thanks.
 

Users who are viewing this thread

Back
Top Bottom