P
pvp
I am creating an OLE Word object and trying to associate
it perm,anently with a new record in a table.
Code:
"
'create associated word document in the folder
Call createDoc(Me.Text51)
'associate the new file with this record
Me.OLEBound63.Class = "Excel.Sheet"
Me.OLEBound63.OLETypeAllowed = acOLELinked
Me.OLEBound63.SourceDoc = "C:\counselog docs\" &
Me.Text51 & ".doc"
Me.OLEBound63.Action = acOLECreateLink
' ...and save the record
DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70
"
It all seems to work, the object appears in the control
(bound frame OLEBound63) on the form with the just-saved
record and I can double-click it and opens.
Later, though, when I go back to the record, the OLE link
has vanished. What am I doing wronf?
Thanks.
it perm,anently with a new record in a table.
Code:
"
'create associated word document in the folder
Call createDoc(Me.Text51)
'associate the new file with this record
Me.OLEBound63.Class = "Excel.Sheet"
Me.OLEBound63.OLETypeAllowed = acOLELinked
Me.OLEBound63.SourceDoc = "C:\counselog docs\" &
Me.Text51 & ".doc"
Me.OLEBound63.Action = acOLECreateLink
' ...and save the record
DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70
"
It all seems to work, the object appears in the control
(bound frame OLEBound63) on the form with the just-saved
record and I can double-click it and opens.
Later, though, when I go back to the record, the OLE link
has vanished. What am I doing wronf?
Thanks.