Hello,
I have a word merged file. The datas are inside a table of an Access
database. The goal is to insert another word document if a condition
is TRUE.
Here is my syntax :
{IF prix_dev=EUR "{INCLUDETEXT "C:\\docs\\eur.doc"}" "The condition
was not verified"}
On 162 fields in my db, 150 have the value EUR inside prix_dev.
So the doc eur.doc should appear on 150 merged pages. (And then 12
with the "not verified" quote)
But ALL 162 pages have the quote "condition was not verified".
Just like the condition was always FALSE...
Same problem with excel file.
What's wrong ?
Thansk, vince.
macropod - 28 Jan 2007 22:55 GMT
Hi Vince,
Try:
{IF{MERGEFIELD prix_dev}= "EUR" {INCLUDETEXT "C:\\docs\\eur.doc"} "The condition was not verified"}
Cheers

Signature
macropod
[MVP - Microsoft Word]
| Hello,
|
[quoted text clipped - 17 lines]
| What's wrong ?
| Thansk, vince.