G
Guest
Access 200
I am using an OLE object to hold a base Word doc that I want to manipulate with an Access subroutine. I am getting the code to make changes to the doc in the OLE; however, even if I specify update manual in the properties, the OLE is updated. I need a way to close the OLE object without updates being stored
Option Compare Databas
Private Sub Print_btn_Click(
Dim objWord As Objec
' Disable document so code will operat
Me!Document.Enabled = Fals
' Assign object property of control to variable
Set objWord = Me!Document.Object.Application.Wordbasi
' Assign customer address to variables
' ' Activate ActiveX control
Me!Document.Action = acOLEActivat
With objWor
.EditSelectAl
.EditCop
.EndOfDocumen
.InsertBreak Type:=wdPageBrea
.EditPast
' the following command has been .Fileexit als
.FileClos
End Wit
Set objWord = Nothin
' Re-enable document vor viewing in for
Me!Document.Enabled = Tru
End Su
How do I quit the word session without updates beeing applied to the OLE object in the table?
I am using an OLE object to hold a base Word doc that I want to manipulate with an Access subroutine. I am getting the code to make changes to the doc in the OLE; however, even if I specify update manual in the properties, the OLE is updated. I need a way to close the OLE object without updates being stored
Option Compare Databas
Private Sub Print_btn_Click(
Dim objWord As Objec
' Disable document so code will operat
Me!Document.Enabled = Fals
' Assign object property of control to variable
Set objWord = Me!Document.Object.Application.Wordbasi
' Assign customer address to variables
' ' Activate ActiveX control
Me!Document.Action = acOLEActivat
With objWor
.EditSelectAl
.EditCop
.EndOfDocumen
.InsertBreak Type:=wdPageBrea
.EditPast
' the following command has been .Fileexit als
.FileClos
End Wit
Set objWord = Nothin
' Re-enable document vor viewing in for
Me!Document.Enabled = Tru
End Su
How do I quit the word session without updates beeing applied to the OLE object in the table?