Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.newusers
|
|||
|
|||
![]()
What am I doing wrong? The following always resolves to False.
{ ASK txtName "Enter Name" \*MERGEFORMAT } { REF txtName } 'Prints - Len { IF { REF txtName } = "Len" "Me" "Someone Else" } 'Prints - Someone Else TIA Len |
#2
![]()
Posted to microsoft.public.word.newusers
|
|||
|
|||
![]()
Hi, Len,
I tried your fields here, and they work perfectly. What version of Word are you using? Since the REF txtName field is working for you, I would focus on a possible error (typo) in the IF statement. Are you sure your IF statement is what you included in this message? See if you can get it to return ME for anything at all. For example: { IF "Len" = "Len" "Me" "Someone Else" } Does that statement return ME for you? If not, then how about: { if "1" = "1" "Me" "Someone Else" } Does that statement work? Once you get it working for anything all, work fowards and see if you can find out where it breaks down. If all else fails, feel free to send me a small document containing the fields, and I can take a look to see if there's an error I can spot. Send to herb at herbtyson dot com. -- Herb Tyson MS MVP Author of the Word 2007 Bible Blog: http://word2007bible.herbtyson.com Web: http://www.herbtyson.com "Len Robichaud" wrote in message t.net... What am I doing wrong? The following always resolves to False. { ASK txtName "Enter Name" \*MERGEFORMAT } { REF txtName } 'Prints - Len { IF { REF txtName } = "Len" "Me" "Someone Else" } 'Prints - Someone Else TIA Len |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
which statement right , question is Choose the correct statement? | Microsoft Word Help | |||
which statement right , question isChoose the correct statement? | Microsoft Word Help | |||
DisplayAsIcon:=False is sometimes ignored | Page Layout | |||
If statement returning true result when should be false | Mailmerge | |||
Format true/false mergefield | Mailmerge |