using an alphanumeric "word" as a field value in an IF statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to create an IF THEN ELSE statement where the field value I'm
selecting by is alpha numeric. For example, if I have "06s1" in the compare
to field, the merged document will always insert the "then" option. If I
modify it and have "06-s-1" in the compare to field, the funtion works
properly an inserts the appropriate option - then or else.

Is there some coding I can do so that the function can recognize a "word"
with both numbers and letters in it?
 
Hi =?Utf-8?B?U29tYQ==?=,
I am attempting to create an IF THEN ELSE statement where the field value I'm
selecting by is alpha numeric. For example, if I have "06s1" in the compare
to field, the merged document will always insert the "then" option. If I
modify it and have "06-s-1" in the compare to field, the funtion works
properly an inserts the appropriate option - then or else.

Is there some coding I can do so that the function can recognize a "word"
with both numbers and letters in it?
Have you tried putting both the left and right-hand sides of the comparison in
"quotes"? That should tell Word to interpret both sides as text.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Back
Top