You can try the following nested fields (of course, "test" should be
replaced with *your* bookmark name):
{ IF { REF test } = "Error! Reference source not found." "" "{ REF
test }" }
Press Ctrl+F9 to insert each pair of field delimiters, { }. Press F9 to
update. Use Alt+F9 to show/hide field codes.
Note that this assumes that "Error!..." is the exact error message that
is occurring. Of course, if you are sending documents to people using a
different language version of Word, the error message will also be
different, and the code won't work. To get around this, you would have
to get more creative. Peter Jamieson has suggested this approach:
{ SET errmsg { REF NonExistingBookmark } }
{ IF { REF test } = { REF errmsg } "" "{ REF test }" }
Here, "test" should be replaced with your bookmark name, but
NonExistingBookmark should be used (the point is that it should be
non-existing and therefore generate the error message).
For more, see the following thread:
Checking to see if a field reference or bookmark exists
http://groups.google.se/group/microsoft.public.word.docmanagement/browse_thread/
thread/17b44a4a15ef8de4/

Signature
Stefan Blom
Microsoft Word MVP
> I use a template for letters which bookmarks a project number that appears
> at the top of the letter, and then any subsequent pages have a reference
[quoted text clipped - 13 lines]
>
> Jack
Jack G - 27 Apr 2007 17:25 GMT
Thanks, Stefan. That's much better! I used the first method, and (after
figuring out that I couldn't just paste your stuff in and that I needed to
use the Ctrl+F9 you talk about) it's working as I had hoped.
> You can try the following nested fields (of course, "test" should be
> replaced with *your* bookmark name):
[quoted text clipped - 48 lines]
>>
>> Jack
Stefan Blom - 30 Apr 2007 07:22 GMT
You are welcome.
As I wrote, the first suggestion assumes that you know the exact error
message, while the second suggestion is the elegant one (and sometimes
the necessary one).

Signature
Stefan Blom
Microsoft Word MVP
> Thanks, Stefan. That's much better! I used the first method, and (after
> figuring out that I couldn't just paste your stuff in and that I needed to
[quoted text clipped - 26 lines]
> >
> > Checking to see if a field reference or bookmark exists
http://groups.google.se/group/microsoft.public.word.docmanagement/browse_thread/
thread/17b44a4a15ef8de4/
> >> I use a template for letters which bookmarks a project number that
> > appears
[quoted text clipped - 20 lines]
> >>
> >> Jack