#1
|
|||
|
|||
Option for running SQL repeating before I can open report
I have a template report in MS Word that I am using a mail merge in it runs from a query out of MS Access. I have added some fields in the query, and everytime I add them to the template the box that says:
"Opening from this document will run the following SQL command: SELECT * FROM 'qryAppraisal' Data from your database will be placed in the document. Do you want to Continue?" Then, when I open a new report from the template, this box pops up 10-15 times before it lets me open the report. What am I doing wrong here? Is it that you can't add fields to a template (via editing: i.e. right clicking the template and selecting open) after it has been created? |
#2
|
||||
|
||||
Hi Tom,
Mailmerge main documents should be stored as documents, not as templates. I'd have thought you'd only get two prompts, though - one for the template and one for the document.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Ok, I saved it as a document but I'm still getting the multiple prompts. I think it might have something to do with the fields I had inserted yesterday. Like I said above, each time I inserted a field I got that prompt....not just when I opened the report...but each time right after I added a field it would prompt me.
|
#4
|
||||
|
||||
Hi Tom,
It sounds like your document's SQL metacode might have corrupted. Try opening the document and answering no to the prompts, then save & close the document. Re-open the document and there should be no prompts, as the SQL statement will have been deleted. You can then re-connect to the data source and re-save the document. From now on, you should only get one prompt.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Repeating Bookmark Text | BECKTHOMO | Word | 1 | 03-27-2012 08:34 PM |
Does Word have an option to update fields AUTOMATICALLY at open??? | Jamal NUMAN | Word | 17 | 01-27-2012 12:57 AM |
repeating text in a document | Stevejd58 | Word | 20 | 11-07-2011 01:07 PM |
Outlook 2010 won't open links if Internet Explorer 8 is already running | Svart Testare | Outlook | 0 | 01-28-2010 11:35 AM |
"open" or "open using" option not availa | ccd | Outlook | 0 | 09-22-2006 01:23 AM |