Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
markg
 
Posts: n/a
Default remove data source

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

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default remove data source

ActiveDocument.MailMerge.MainDocumentType = wdNotAMergeDocument


--
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

"markg" wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
markg
 
Posts: n/a
Default remove data source

That worked perfectly - thank you very much!

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a read-only mail merge data source? Julie Mailmerge 3 November 16th 05 07:23 PM
DotNet Data Table as Mail Merge Data Source goraya Mailmerge 1 July 7th 05 09:51 AM
Specific Email Merge w/ Specific Attachements Mark B Mailmerge 9 February 21st 05 05:10 AM
Cannot Find Its Data Source Dave Foote Mailmerge 3 December 17th 04 11:27 AM
Merge Data Source path Peter Jamieson Mailmerge 0 November 25th 04 07:15 PM


All times are GMT +1. The time now is 01:35 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"