> I am using MS Word 2002 SP3 to merge data.
>
[quoted text clipped - 16 lines]
>
> Richard
Thank you very much for the response.
Unfortunately, it does not appear to work. I copied the mergefield code
into the document after using ALT-F9 to view the codes. Changed the Data
Column to MergeDate and changed the date to dd/mm/yyyy. When I switch back,
nothing appears in the location.
I thought maybe it was the spacing, i.e. I tried inserting a space between
QUOTE and { but I then get the error message Error! Too many picture
switches defined.
Using just the merge code { MERGEFIELD MergeDate } it shows 8/04/2004
Did you get the code to work for you? Any idea what I am doing wrong?
Yours truly,
Richard
the following mergefield code should achieve what you're after:
> {QUOTE{SET Data{MERGEFIELD MergeDate}}{Data \@ d}{IF{=(mod({Data \@
> d},10)<4)*(mod({Data \@ d},10)<>0)*({Data \@ d}<>11)*({Data \@
> d}<>12)*({Data \@ d}<>13)}= 1 {=mod({Data \@ d},10)-2 \# rd;st;nd} th}" of
> "{Data \@ "MMMM yyyy"}}
macropod - 09 Apr 2004 11:09 GMT
Hi Richard,
I should have included '=' signs before each 'Data' ref after the SET field,
as in:
{QUOTE{SET Data{MERGEFIELD MergeDate}}{=Data \@ d}{IF{=(mod({=Data \@
d},10)<4)*(mod({=Data \@ d},10)<>0)*({=Data \@ d}<>11)*({=Data \@
d}<>12)*({=Data \@ d}<>13)}= 1 {=mod("{=Data \@ d},10)-2 \# rd;st;nd} th}"
of "{=Data \@ "MMMM yyyy"}}
Cheers
macropod - 10 Apr 2004 06:38 GMT
Hi Richard,
Seems the last solution insists on inserting today's date. Try:
{QUOTE{MERGEFIELD MergeDate \@ d}{IF{=(mod({MERGEFIELD MergeDate \@
d},10)<4)*(mod({MERGEFIELD MergeDate \@ d},10)<>0)*({ MERGEFIELD MergeDate
\@ d}<>11)*({ MERGEFIELD MergeDate \@ d}<>12)*({ MERGEFIELD MergeDate \@
d}<>13)}= 1 {=mod({MERGEFIELD MergeDate \@ d},10)-2 \# rd;st;nd} th}" of
"{MERGEFIELD MergeDate \@ "MMMM yyyy"}}
instead.
Cheers
> Thank you very much for the response.
>
[quoted text clipped - 21 lines]
> > d}<>12)*({Data \@ d}<>13)}= 1 {=mod({Data \@ d},10)-2 \# rd;st;nd} th}" of
> > "{Data \@ "MMMM yyyy"}}
Richard - 10 Apr 2004 20:43 GMT
The final solution does work.
Thank you for your help.
Yours truly,
Richard
> Hi Richard,
>
[quoted text clipped - 42 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.627 / Virus Database: 402 - Release Date: 16/03/2004