The information in this article applies to:
SUMMARYThe "?" and the "*" are wildcard characters in a print merge. If you want to query for a "?" or an "*" in a field, use the following syntax: {IF "?" = {mergefield} "truetext" "falsetext"}Reversing the query in the IF statement allows Word to view the "?" and the "*" as literal text, rather than as wildcards. MORE INFORMATIONHere is a sample data file:
Question MarkIf the Number field is a "?", print "no number", otherwise print the number.{IF "?" = {mergefield number} "No number to print" "{mergefield number}"}Form Letter Example:
AsterisksIf the name is an *, print "No name", otherwise print the name.{IF "*" = {mergefield name} "No name" "{mergefield name}"} Additional query words: winword2 1.0 1.10a 2.0 winword 7.0 word95 word7 word6 6.0 print merge wrong wild card word97
Keywords : kbfield |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |