Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Soma Soma is offline
external usenet poster
 
Posts: 1
Default using an alphanumeric "word" as a field value in an IF statement

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?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP- Cindy M  -WordMVP- is offline
external usenet poster
 
Posts: 370
Default using an alphanumeric "word" as a field value in an IF statement

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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Include an or option in IF statement: IF field = _ OR= _ then ARY Mailmerge 3 March 17th 06 12:01 PM
Enter text in a field and have it appear as entered elsewhere Gregory Winters Microsoft Word Help 6 November 1st 05 02:09 AM
IF THEN ELSE Statement built by searching for a word in a Text Field Nick Mailmerge 1 September 7th 05 07:31 PM
IF THEN ELSE Statement built by searching for a word in a Text Field Nick Mailmerge 0 September 7th 05 01:39 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


All times are GMT +1. The time now is 01:00 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"