|
4#
楼主 |
发表于 2009-10-22 20:14:12
|
只看该作者
回复二楼,我设置了word对象的,但使用中老是出错
'----------------------------------------------------------------------------------------------
Set n = CreateObject("word.application")
n.Visible = False
DoCmd.Hourglass True
strpath = mobanPath & "\" & strfrmName & ".doc"
n.Documents.Open FileName:=strpath
n.Documents(strfrmName).saveas FileName:=strgyName, Password:=""
Set wordDoc = n.Documents.Open(strgyName)
......
......
selection.wholestory
selection.fields.unlink
'------------------------------------------------------------------------------
请你看看,我该怎么修改呢?
另外,我在access控制word,想在word表里增加一行,或者删除一行,我又该怎么写代码呢?
请帮忙解决,在此先谢了~~~ |
|