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

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?
 
C

Cindy M -WordMVP-

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 :)
 

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