Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / January 2006

Tip: Looking for answers? Try searching our database.

remove data source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
markg - 12 Jan 2006 17:59 GMT
How can I completely remove a datasource from a document.

I can close a datasource with the code:

ActiveDocument.MailMerge.DataSource.Close

but the next time I open the document I am still prompted that "Opening
the document will run the following sql..."

The only way we have found to remove a datasource is to copy the
contents of the document to a new blank document.

Any suggestions.

-mark gordon
Doug Robbins - Word MVP - 12 Jan 2006 20:30 GMT
ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument

Signature

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

> How can I completely remove a datasource from a document.
>
[quoted text clipped - 11 lines]
>
> -mark gordon
markg - 16 Jan 2006 23:15 GMT
That worked perfectly - thank you very much!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.