Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
remove data source
That worked perfectly - thank you very much!
|
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I create a read-only mail merge data source? | Mailmerge | |||
DotNet Data Table as Mail Merge Data Source | Mailmerge | |||
Specific Email Merge w/ Specific Attachements | Mailmerge | |||
Cannot Find Its Data Source | Mailmerge | |||
Merge Data Source path | Mailmerge |