View Single Post
  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Joshua Pangborn
 
Posts: n/a
Default Using IF to find whether a Merge Field contains a substring

The answer to that has two parts. The initial datasource is a Oracle
Database. I run a process that extracts the data I need and creates a Comma
Delimited Text file which I use in the merge. I have no control over how the
Oracle Database generates the text file.
--
- Joshua Pangborn


"Peter Jamieson" wrote:

What is the data source (Access, SQL Server,...)?

Peter Jamieson
"Joshua Pangborn" wrote in
message ...
I am merging some letters, and I have a merge field that lists a number of
codes separate by new lines. I need to include another document if a
particular code is in the mergefield. I know that you can use IF
MergeField =
"string", but that returns false. I have tried IF MergeField = "*string*",
but that also returns false. Is there another way to test if a merge field
contains a string? Thanks. I can provide more information if needed.
--
- Joshua Pangborn