I am interested in knowing how to open a MS Word document stored in Access 2000 as an ole object with vbscript. I get t type mismatch error with the following code..
Dim oRst, sQuery
Set oRst = CreateObject("ADODB.Recordset")
sQuery = "Select * FROM tblPOW WHERE tblPOW.[Current] = true"
oRst.Open sQuery, oConn
Dim WordApp
Set WordApp = CreateObject("Word.Application")
WordApp.Visible = TRUE
WordApp.Documents.Open(oRst("news"))
Dim oRst, sQuery
Set oRst = CreateObject("ADODB.Recordset")
sQuery = "Select * FROM tblPOW WHERE tblPOW.[Current] = true"
oRst.Open sQuery, oConn
Dim WordApp
Set WordApp = CreateObject("Word.Application")
WordApp.Visible = TRUE
WordApp.Documents.Open(oRst("news"))