Microsoft KB Archive/31268

Using Wildcard Characters with Print Merge in Word

PSS ID Number: Q31268 Article last modified on 11-02-1994

4.00 5.00 5.50 6.00

MS-DOS

= SUMMARY =

The Print Merge command in Word versions 4.0, 5.0 and 5.5 allow the use of the single wildcard character “?”. The “?” is similar in function to the DOS wildcard character “?” in that it represents a replaceable character location within a specified string of characters. There is no Print Merge equivalent to the DOS &quot;*&quot; wildcard character.

The following is an example of the syntax and use of the “?” in a Print Merge IF statement:

<>

The above example returns a true condition for each record in which the “fieldname” field ends in the string “arry”, regardless of the content of the first character location.

In this example, true conditions exist for records where the field “fieldname” consists of “Larry”, “barry”, “5arry”, or any other combination of a character followed by the character string “arry”.

KBCategory: kbother KBSubcategory: Additional reference words: wdmerge ============================================================================= Copyright Microsoft Corporation 1994.