Share via

ask/ref field left blank

Anonymous
2014-07-01T17:49:31+00:00

If the user does not answer an {ask} field, when the {ref} statement appears, the mailmerge fails.

How can I tell Word to just leave the ref blank and not fail?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2014-07-04T02:37:57+00:00

    No, I am not referring to the \d switch. Even if you use that with some meaningful content, but the user deletes that and leaves an empty result, you'll get the errors that are now occurring.

    When you use an ASK field, it creates a bookmark - but only if you provide an non-empty response. Your REF fields are generating errors because, when you give no response to the ASK prompt, the bookmark doesn't get created. The solution is to ensure the bookmark exits. You do that by either of the two methods I suggested.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-07-04T00:46:14+00:00

    Maybe I'm not understanding. It sounds like you are referring to the \d default switch. But I'm trying to accomplish this:

    When the ASK prompt appears during mailmerge, if the user leaves it totally blank, when the mailmerge hits the REF field, it just leaves it blank instead of creating the dreaded MailMerge Errors screen.

    Was this answer helpful?

    0 comments No comments
  3. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2014-07-02T21:35:47+00:00

    I don't know that there's any doco regarding the bookmark behaviour when you use ASK fields in mailmerges. However, the issue is that, until the ASK field has had a non-empty answer, it won't create its bookmark. So there are two ways of resolving that:

    1. use Ctrl-A, F9 to trigger the ASK field, and insert a non-empty answer. Then do the same again but insert an empty answer; or
    2. with the insertion point either inside the ASK field, or somewhere else in the document that isn't in a field, and with nothing selected, as such, use Insert|Bookmark to add a bookmark that the ASK field uses to the document (e.g if the ASK field is coded {ASK BkMk "Your prompt text" \o}, you use Insert|Bookmark to add a BkMk bookmark).

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2014-07-02T16:36:46+00:00

    Thank you.  Is there some kind of documentation on this? I have never used bookmarks and am not clear on this.

    Was this answer helpful?

    0 comments No comments
  5. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2014-07-01T23:59:09+00:00

    To prevent mailmerge calculation & cross-referencing errors, simply make sure the mailmerge main document contains an empty bookmark with name used by the ASK field.

    Was this answer helpful?

    0 comments No comments