Re: SQL, merge fields, and other mysteries

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Peter Jamieson (pjj_at_KillmapSpjjnet.demon.co.uk)
Date: 09/11/04

  • Next message: Peter Jamieson: "Re: Email merge HTML"
    Date: Sat, 11 Sep 2004 08:10:06 +0100
    
    

    Normally when you merge to a new document, that document is not a Mail merge
    main document and does not have any fields that would cause this problem to
    occur. Although it doesn't really sound like it, I am wondering whether you
    are actually opening the mail merge main document, using the preview
    facilities to move to a specific record in the data source, then saving that
    document under a new name - in which case it will still be a mail merge main
    document. IN any case, what you probably need to do is...
     a. in Word 2000 and earlier, click on the mail merge helper button in the
    Mailmerge toolbar, which should be visible. Click on the Create button and
    select the "Restore to Normal Word Document" option.
     b. in Word 2002 and later, enable the Mailmerge toolbar (Tools|Customize)
    if it is not already displayed, click the first button and select the Normal
    document option.

    -- 
    Peter Jamieson
    "Geri" <geri_removetheunderscoreandthistext_@wordweaver.com.au> wrote in
    message news:03e901c49798$4ce53750$a301280a@phx.gbl...
    > Setting the scene...
    >
    > I have inherited a Filemaker database (Recruitment
    > Agency). Part of its job is to export (Candidate) data to
    > a .MER format (called 'Candidate.mer')
    >
    > A .DOT CV template in Word was created ages ago (by a
    > previous employee, not trackable) that is nicely
    > formatted, and holds all the relevant fieldnames that
    > match the .MER file fields. On opening this .dot
    > template, a dialogue box is displayed: "OPening this
    > docuement will run the following SQL command: Select *
    > from C:\Desktop\Candidate.mer". On selecting 'Yes', it
    > goes ahead and inserts the related merge field data from
    > my Filemaker exported file Candidate.mer, into a new
    > unsaved document.
    >
    > That's all OK. But now I want to save this document in
    > plain Word format. So I removed the fields, then save the
    > file and close it. But no matter what I do, on re-opening
    > the document (now saved with the name of the Candidate eg
    > Alvarez.doc etc) it keeps displaying the dialogue box on
    > opening that asks if I want to run the SQL command. I am
    > not an SQL expert by any stretch and am stumped.
    >
    > Here's what I have tried.... Selecting all the text, then
    > removing fields (CTRL + SHIFT + F9) (that does work, but
    > doesn't take away the dialogue box on opening). So while
    > I have removed the fields, there must be some SQL command
    > embedded in the document that needs to be de-activated in
    > the saved document. But where?
    >
    > TIA, Geri
    

  • Next message: Peter Jamieson: "Re: Email merge HTML"

    Relevant Pages

    • SQL, merge fields and other mysteries
      ... I have inherited a Filemaker database (Recruitment ... a dialogue box is displayed: "OPening this ... Alvarez.doc etc) it keeps displaying the dialogue box on ... opening that asks if I want to run the SQL command. ...
      (microsoft.public.word.docmanagement)
    • Re: opening a mailmerge doccument in word 2003
      ... See "Opening This Will Run the Following SQL Command" Message When You Open ... Microsoft MVP (Word) ... I do not wish to see this dialogue box each time I open the document. ...
      (microsoft.public.word.docmanagement)
    • Re: SQL, merge fields, and other mysteries
      ... "Opening This Will Run the Following SQL Command" Message When You Open a ... But no matter what I do, on re-opening> the document it keeps displaying the dialogue box on> opening that asks if I want to run the SQL command. ... So while> I have removed the fields, there must be some SQL command> embedded in the document that needs to be de-activated in> the saved document. ...
      (microsoft.public.word.mailmerge.fields)
    • Re: SQL, merge fields and other mysteries
      ... I believe that it has been answered in the other newsgroup. ... a dialogue box is displayed: "OPening this ... > Alvarez.doc etc) it keeps displaying the dialogue box on ... > opening that asks if I want to run the SQL command. ...
      (microsoft.public.word.docmanagement)
    • Re: Opening this document will run the following SQL command:
      ... I can confirm that the steps Nadia Posatini posted above work perfectly! ... opening this document will run the following sql command ... Either put up with the message or modify the Registry and the KB article ... opening this document will run the following sql command ...
      (microsoft.public.word.vba.general)