Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Jack Cannon Jack Cannon is offline
external usenet poster
 
Posts: 5
Default Mail Merge Picture Unchanging

I am using the Mail Merge feature in Word 2002.
The data source is from an Access 2002 table.
That is working correctly.

However when I attempt to include a picture I am unable to change the
original picture regardless of what I do.

Initially I insert the picture using:
Insert/Picture/From File ... /Link to File

I get back something like:
{IncludePicture "C:\\Photos\\John.jpg" \* MERGEFORMATINET \d }
The selected picture is inserted into the document.

I then change the IncludePicture code to:
{IncludePicture "C:\\Photos\\{Mergefield "FirstName"}.jpg" \*
MERGEFORMATINET \d }
When the Mail Merge executes I get John's picture regardless of what is in
the database.
All other Mergefields operate correctly.

I also attempt to change the IncludePicture code to:
{IncludePicture "C:\\Photos\\Mary.jpg" \* MERGEFORMATINET \d }
and I still continue to get John's picture.

Can anyone explain what is going on?

Thanks Much,
Jack Cannon

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Jack Cannon Jack Cannon is offline
external usenet poster
 
Posts: 5
Default Mail Merge Picture Unchanging

It looks like I found the problem.
One needs to depress the key F9 after editing the IncludePicture code.

Thanks Anyway,
Jack Cannon

"Jack Cannon" wrote:

I am using the Mail Merge feature in Word 2002.
The data source is from an Access 2002 table.
That is working correctly.

However when I attempt to include a picture I am unable to change the
original picture regardless of what I do.

Initially I insert the picture using:
Insert/Picture/From File ... /Link to File

I get back something like:
{IncludePicture "C:\\Photos\\John.jpg" \* MERGEFORMATINET \d }
The selected picture is inserted into the document.

I then change the IncludePicture code to:
{IncludePicture "C:\\Photos\\{Mergefield "FirstName"}.jpg" \*
MERGEFORMATINET \d }
When the Mail Merge executes I get John's picture regardless of what is in
the database.
All other Mergefields operate correctly.

I also attempt to change the IncludePicture code to:
{IncludePicture "C:\\Photos\\Mary.jpg" \* MERGEFORMATINET \d }
and I still continue to get John's picture.

Can anyone explain what is going on?

Thanks Much,
Jack Cannon

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mail Merge Picture Unchanging

No - you need to merge to a new document and then update all the images
http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Jack Cannon wrote:
It looks like I found the problem.
One needs to depress the key F9 after editing the IncludePicture code.

Thanks Anyway,
Jack Cannon

"Jack Cannon" wrote:

I am using the Mail Merge feature in Word 2002.
The data source is from an Access 2002 table.
That is working correctly.

However when I attempt to include a picture I am unable to change the
original picture regardless of what I do.

Initially I insert the picture using:
Insert/Picture/From File ... /Link to File

I get back something like:
{IncludePicture "C:\\Photos\\John.jpg" \* MERGEFORMATINET \d }
The selected picture is inserted into the document.

I then change the IncludePicture code to:
{IncludePicture "C:\\Photos\\{Mergefield "FirstName"}.jpg" \*
MERGEFORMATINET \d }
When the Mail Merge executes I get John's picture regardless of what
is in the database.
All other Mergefields operate correctly.

I also attempt to change the IncludePicture code to:
{IncludePicture "C:\\Photos\\Mary.jpg" \* MERGEFORMATINET \d }
and I still continue to get John's picture.

Can anyone explain what is going on?

Thanks Much,
Jack Cannon



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Jack Cannon Jack Cannon is offline
external usenet poster
 
Posts: 5
Default Mail Merge Picture Unchanging

Thanks Graham,

You mentioned, "Select the new document - CTRL+A - then press F9 to update"
or to use the macro "UpdateAll".
That works great. But I need to execute the code from within Access VBA
without user intervention. Is there a way to do that?

I realize that this might not be the right forum but Word Mail Merge
questions do not fit in Access either.

Jack Cannon


"Graham Mayor" wrote:

No - you need to merge to a new document and then update all the images
http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP on news.microsoft.com Doug Robbins - Word MVP on news.microsoft.com is offline
external usenet poster
 
Posts: 407
Default Mail Merge Picture Unchanging

At the appropriate place in your code, use the command

ActiveDocument.Fields.Update

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Jack Cannon" wrote in message
...
Thanks Graham,

You mentioned, "Select the new document - CTRL+A - then press F9 to
update"
or to use the macro "UpdateAll".
That works great. But I need to execute the code from within Access VBA
without user intervention. Is there a way to do that?

I realize that this might not be the right forum but Word Mail Merge
questions do not fit in Access either.

Jack Cannon


"Graham Mayor" wrote:

No - you need to merge to a new document and then update all the images
http://www.gmayor.com/mail_merge_graphics.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org






  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Jack Cannon Jack Cannon is offline
external usenet poster
 
Posts: 5
Default Mail Merge Picture Unchanging

Thanks Doug.

This is exactly what I was looking for.
Everything is now working great and
without user intervention.

Jack Cannon

"Doug Robbins - Word MVP on news.microsof" wrote:

At the appropriate place in your code, use the command

ActiveDocument.Fields.Update

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

  #7   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Jack Cannon Jack Cannon is offline
external usenet poster
 
Posts: 5
Default Mail Merge Picture Unchanging

Thanks Doug.

This is exactly what I was looking for.
Everything is now working great and
without user intervention.

Jack Cannon

"Doug Robbins - Word MVP on news.microsof" wrote:

At the appropriate place in your code, use the command

ActiveDocument.Fields.Update

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail merge picture won't refresh automatically? JethroUK© Mailmerge 2 October 16th 07 05:55 PM
mail merge a fax which picture asma khorma Mailmerge 5 August 7th 06 09:28 AM
Picture in Mail Merge to Email jcallenback Mailmerge 1 July 13th 06 09:43 AM
Merging Picture with Mail Merge [email protected] Mailmerge 11 October 2nd 05 01:32 PM
How do I put a picture in a Mail Merge database field. Ring Mailmerge 3 March 16th 05 08:34 AM


All times are GMT +1. The time now is 09:08 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"