WD: How to query for ""?"" and ""*"" in Print Merge IF field (110282)
The information in this article applies to:
- Microsoft Word 97 for Windows
- Microsoft Word for Windows 95
This article was previously published under Q110282 SUMMARY
The "?" 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"}
-or-
{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.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbfield KB110282 |
---|
|