A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2007 - How To Edit a Main Document



 
 
Thread Tools Display Modes
  #1  
Old October 27th, 2008, 06:49 PM posted to microsoft.public.word.mailmerge.fields
[email protected]
external usenet poster
 
Posts: 1
Default Word 2007 - How To Edit a Main Document

I have inherited some Word templates (2003 format, .dot files) that
try to open a .txt file and perform a merge when the file is opened.
They present the following message when the template is opened, either
when opening the template within Word in File - Open or when creating
a new document based on the template:

Opening this document will run the following SQL command:

SELECT * FROM c:\datasource.txt

Data from your database will be placed in the document. Do you want to
continue?

Here's my problem: I want to just edit the template. There is some
information in there that I need to be able to update but I don't want
to actually perform this action and do any merging. If I tell Word
that I don't want to continue I can update the template and save it as
a Word 2003 .dot file, but when I re-open it (or make a new document
based on it) it is no longer asking me where the c:\datasource.txt
file is, which makes me believe that it's no longer associated with
the datasource.

Is there a way I can just open up, edit and save this document
template without having to experience the merge process or be forced
to try to find this text file?
  #2  
Old October 27th, 2008, 07:16 PM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Word 2007 - How To Edit a Main Document

Just answer Yes. That will not cause the merge to actually be performed and
you can then edit the template and save it so that it can then be used for a
mail merge.

You can prevent that message from appearing by following the steps in the
article:

"Opening This Will Run the Following SQL Command" Message When You Open a
Word Document - 825765 at:

http://support.microsoft.com?kbid=825765


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

wrote in message
...
I have inherited some Word templates (2003 format, .dot files) that
try to open a .txt file and perform a merge when the file is opened.
They present the following message when the template is opened, either
when opening the template within Word in File - Open or when creating
a new document based on the template:

Opening this document will run the following SQL command:

SELECT * FROM c:\datasource.txt

Data from your database will be placed in the document. Do you want to
continue?

Here's my problem: I want to just edit the template. There is some
information in there that I need to be able to update but I don't want
to actually perform this action and do any merging. If I tell Word
that I don't want to continue I can update the template and save it as
a Word 2003 .dot file, but when I re-open it (or make a new document
based on it) it is no longer asking me where the c:\datasource.txt
file is, which makes me believe that it's no longer associated with
the datasource.

Is there a way I can just open up, edit and save this document
template without having to experience the merge process or be forced
to try to find this text file?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.