Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail merge includepicture doesn't work! 1

Status
Not open for further replies.

bekibutton

Technical User
Feb 16, 2004
378
GB
Hi,

I'm trying to insert a different picture for each record in a mail merge that I'm doing, using an Access database table as my source data.

My picture code is
{ INCLUDEPICTURE { MERGEFIELD "Pic" } \* MERGEFORMAT }
which gives
INCLUDEPICTURE "C:\\Database\\OrangeX.gif" \* MERGEFORMAT when I copy it into notepad.

If I use the second code (ie explicitly state the file path) the picture is shown. If I use the MERGEFIELD code it doesn't work.

I had a load of trouble getting Date-Time Picture Switches to work in word and gave up trying to format the date, instead changing the source data to text format which is admittedly not ideal. I don't know if, given that I've had problems with both these things, it's something to do with my version of Word (2002 SP-2)??

Does anyone have any ideas? Any help would be greatly appreciated!

Thanks
Becki

--------------------------------------
I was gonna take over the world but got distracted by something shiny
 
Never mind - somehow I've eventually found the right combination of spaces, slashes and quotemarks and it now works fabulously!

It's ended up as
{ INCLUDEPICTURE "C:\\Database\\{MERGEFIELD Pic}" }

Thanks for looking anyway :)
Becki

--------------------------------------
I was gonna take over the world but got distracted by something shiny
 
Thanks very much indeed for the above. I found that in Word 2000, it is the quote marks that make the whole thing work:

{ INCLUDEPICTURE "{MERGEFIELD Pic}" }

Did the trick for me. Once again, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top