Link to home
Create AccountLog in
Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Avatar of chestera
chestera

Mail merge office 2003
Hi

Our department has just updated Office from 2000 to 2003. Now when I print letters (Mail merge) I get the message Opening this document will run the following SQL Command
SELECT * FROM(tblMailMerge)
Data from your database will be placed in the document. Do you want to continue?

If I select Yes then the letter gets printed. Is there away to get rid of that message.

chestera

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Word 2003
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options

"SQLSecurityCheck"=dword:00000000
1. Start Registry Editor.
2. Locate and then click the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options
3. Click Edit, point to New, and then click DWORD Value.
4. Under Name, type:
SQLSecurityCheck
5. Double-click SQLSecurityCheck.
6. In the Value data box, type:
00000000 Β 
7. Click OK.

Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Greetings chestera,

You may refer to http://support.microsoft.com/?kbid=825765Β for reference. :)

Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

More information for your knowledge:

CAUSE
The prompt that is described in the "Symptoms" section is by design.

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.

Note Setting DisplayAlerts=none through VBA suppresses the prompt when the file is opened by using VBA, but uses the NO option to open the document and no data is attached to the mail merge main document.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of chesterachestera

ASKER

pc idiot

The app is on a number of machines so changing the registry not an option we don't had admin rights either.

To supress the prompt DisplayAlerts=none is that the same as Docmd setwarnings False

chestera

Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Hi chestera,

Thanks for the feedback. Here's another solution which u may try:

To determine if you are using any global templates, in Word go to Tools/Templates and Add-Ins and see if there are any global templates or add-ins listed. If so they are located in one of your Startup folders. The location of the Word\Startup folder can be found under Tools/Options/File Locations and the Office\Startup folder can be found in the Office installation path..

Take a look in each folder and if you find more than one file move them one at a time and try duplicating the error after each file is moved out of the folder until you determine which one is causing the problem.

Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Another workaround, please backup your files on a portable thumbdrive before proceeding:

Obtained from a user who had problem and solved when performed the below workaround.
Following instructions from Word-Tools/ Templates and Add Ins I found two global templates:- MyobMn97.dot and HTML.WLL
Only MYOB one was ticked.
I did a search from explorer and found MyobMn97.dot in two STARTUP folders:-
C:\......\OFFICE11\STARTUP and C:\Programfiles\MicrosoftOffice\Office\STARTUP
Deleted from both startup folders and problem solved. Did not touch HTML.WLL

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


pc idiot

Help most appreciated I will get back to you. I will try some of your suggestions

chestera

pc idiot

Tools/Templates the addins list box is empty. C:\.......Office11\Startup Empty. C:\....Office no Startup folder

chestera

pc idiot

Went to the microsoft web site http://support.microsoft.com/?kbid=825765Β . It appears this is the only work around. As stated it's not an option for us. Looks like we will have to live with it.

chestera

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

pc idiot

Just changed the Registy and it works fine. Many thanks for your help. I will accept your last comment all the best

chestera

Avatar of Pc_IdiotPc_IdiotπŸ‡ΈπŸ‡¬

Thanks chestera,

Probably u might need to have the administrator help on this issue. I've friends working in big companies and if this is a microsoft KB issue, normally the engineers will assist in resolving the issue. Thanks again chestera, am glad it resolve ur issue.
Microsoft Access

Microsoft Access

--

Questions

--

Followers

Top Experts

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.