G
ghornet
Currently my users have to have a shared file that they can click on the
word docuement and then manually filter their results in the data
source. I am creating an Intranet page that links to the DOT files. So
the user can then browse to the Intranet page click on the template
they need to use and then run a macro I have created for each document
that runs a query based on what template they are opening.
It works fine on the server, but the problem is that when I try to open
the word document from the Intranet I run into some problems It opens
Word and it opens MS query automatically looking for the query file at
this location (\\Leads\CMS\MailList\Letters\CMS.dqy), then it just sits
their, has anyone else tried this? here is my macro.
-'
ActiveDocument.MailMerge.OpenDataSource Name:= _
"\\Leads\CMS\MailList\Letters\CMS.dqy",
ConfirmConversions:=False, _
ReadOnly:=False, LinkToSource:=True, AddToRecentFiles:=False,
_
PasswordDocument:="", PasswordTemplate:="",
WritePasswordDocument:="", _
WritePasswordTemplate:="", Revert:=False,
Format:=wdOpenFormatAuto, _
Connection:= _
"DRIVER=SQL Server;SERVER=LEADS;UID=UID;PWD=PWD;APP=Microsoft®
Query;WSID=LEADS;Network=DBMSSOCN", _
SQLStatement:="SELECT * FROM CMS WHERE Template = 'SoldNote'"
ActiveDocument.MailMerge.EditDataSource
-
I inheirented these mail merge documents, so I don't know much about
how mailmerge works, just what I know from my last weeks worth of
research.
From what I understand is that when I click on my link in the Intranet
it spawns a new instance of the DOT file as a DOC file.
Thanks
D--
word docuement and then manually filter their results in the data
source. I am creating an Intranet page that links to the DOT files. So
the user can then browse to the Intranet page click on the template
they need to use and then run a macro I have created for each document
that runs a query based on what template they are opening.
It works fine on the server, but the problem is that when I try to open
the word document from the Intranet I run into some problems It opens
Word and it opens MS query automatically looking for the query file at
this location (\\Leads\CMS\MailList\Letters\CMS.dqy), then it just sits
their, has anyone else tried this? here is my macro.
-'
ActiveDocument.MailMerge.OpenDataSource Name:= _
"\\Leads\CMS\MailList\Letters\CMS.dqy",
ConfirmConversions:=False, _
ReadOnly:=False, LinkToSource:=True, AddToRecentFiles:=False,
_
PasswordDocument:="", PasswordTemplate:="",
WritePasswordDocument:="", _
WritePasswordTemplate:="", Revert:=False,
Format:=wdOpenFormatAuto, _
Connection:= _
"DRIVER=SQL Server;SERVER=LEADS;UID=UID;PWD=PWD;APP=Microsoft®
Query;WSID=LEADS;Network=DBMSSOCN", _
SQLStatement:="SELECT * FROM CMS WHERE Template = 'SoldNote'"
ActiveDocument.MailMerge.EditDataSource
-
I inheirented these mail merge documents, so I don't know much about
how mailmerge works, just what I know from my last weeks worth of
research.
From what I understand is that when I click on my link in the Intranet
it spawns a new instance of the DOT file as a DOC file.
Thanks
D--