There are a few general ways you can approach this:
a. change the source data
b. use a large number of IF fields (I'm not familiar with this type of
reference but assuming it always has a group of three quarters, each of
which can be NW/NE/SW/SE, then I think you would need 64 IF fields. Or use
nested IF fields (you will only increase the complexity)
b. use a method of accessing the source data that lets you specify an SQL
query, then use a string function in the query to return the string you
want. This is not trivial if you have never done it before, but if you can
work your way through MS Query it should be doable,
c. Use a DATABASE field and some SQL code to split the field up - you will
find examples posted by me in this group
d. use a "lookup" of some kind in your Word mail merge main document. E.g.
create a new Word document, then have one result text for each of the
possible 64 values, e.g. NW¼NW¼NW¼. Then bookmark each value with the
reference, so e.g. SE¼SW¼SE¼ is bookmarked using the name SESWSE. Suppose
this file is c:\myq\quarters.doc. Then use the following nested field in
your document
{ INCLUDETEXT "c:\\myq\\quartersdoc" { MERGEFIELD myquarter } }
where myquarter is the name of the Excel column containing the reference
e. Or use some VBA to generate 64 document variables or custom document
properties named NWNWNW, SESWSE etc., with the appropriate result values,
and use { DOCVARIABLE "{ MERGEFIELD myquarter }" } or { DOCPROPERTY "{
MERGEFIELD myquarter }" } to insert the correct result. You should only need
to run the VBA once when you create a new merge appllication.
f. or use Word 2002 VBA mailmerge events to inspect the value of the field
for each record and stuff the result you want into the mail merge main
document as each record in the data source is processed.
--
Peter Jamieson - Word MVP
Word MVP web site
http://word.mvps.org/
I am using Word 2002.
My excel data has a quater section field (ex. "SESWSE")
I was wondering is there a way to merge that field to
appear in Word as "SE¼SW¼SE¼"
Thanks for your help on this
Sandra