Pesky SQL Command Warning When Opening a Word Document

You open a Word document sent to you by a colleague and get this warning:

Just click ‘No.” The document will open without running the SQL command.

Here is what Microsoft has to say about it:

This prompt exists in all later versions of Microsoft Office and was introduced in Office XP Service Pack 3. This prompt was added in the products listed in the "Applies to" section to make mail merge more secure. If you click Yes when you receive the prompt, you let code run on your computer. A malicious user may be able to craft a SQL query that is designed to steal or to destroy data that you have access to. If you click No when you receive the prompt, you do not let code to run.

Microsoft suggests the following in terms of removing the SQL command from the original document if it results from a mail merge:

1. Open the main document from which you want to remove the data source. 2. On the View menu, point to Toolbars, and then click Mail Merge.

3. Click Main Document Setup . 4. Click Normal Word document

Return to Wuensch's Word Help Page