need field code to look for part of a word

C

Cirano

I'm trying to merge documents using word 2002. Problem is
that I want the IF condition to look for a word within a
memo field.

e.g: IF mergeComment contains the word "contingent"
(anywhere in the comment, not necessarily beginning or the
end) then I want to insert a paragraph of text.

Appreciate any clues you can provide.

Thank you
 
M

macropod

Hi Cirano,

You can't do that with a field: Word fields don't have functions for testing
for a string within another string. You'll either need to use a macro, or a
field that can reference some numeric data or a complete string for testing.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top