Reply
 
Thread Tools Display Modes
  #1   Report Post  
TimTDP TimTDP is offline
Junior Member
 
Posts: 3
Default If function and IncludePicture

I do a mail merge from Access. The merge consists of two fields, namely ProductCode and Logo. I use the IncludePicture function to include the Logo in the merge. This works well.
However I want to expand this to include an "if" function so that if the field "Logo" is empty, no error message appears in the merged document.

Any help will be appreciated!
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

Use the following field construction

{ IF { MERGEFIELD Logo } "" { INCLUDEPICTURE { MERGEFIELD Logo } } "" }

--
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
"TimTDP" wrote in message
...

I do a mail merge from Access. The merge consists of two fields, namely
ProductCode and Logo. I use the IncludePicture function to include the
Logo in the merge. This works well.
However I want to expand this to include an "if" function so that if
the field "Logo" is empty, no error message appears in the merged
document.

Any help will be appreciated!


--
TimTDP



  #3   Report Post  
TimTDP TimTDP is offline
Junior Member
 
Posts: 3
Default

Not quite!
The error message disappears, but so does the graphic (Logo) in valid entries.

Quote:
Originally Posted by Doug Robbins
Use the following field construction

{ IF { MERGEFIELD Logo } "" { INCLUDEPICTURE { MERGEFIELD Logo } } "" }

--
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
"TimTDP" wrote in message
...

I do a mail merge from Access. The merge consists of two fields, namely
ProductCode and Logo. I use the IncludePicture function to include the
Logo in the merge. This works well.
However I want to expand this to include an "if" function so that if
the field "Logo" is empty, no error message appears in the merged
document.

Any help will be appreciated!


--
TimTDP
  #4   Report Post  
TimTDP TimTDP is offline
Junior Member
 
Posts: 3
Default

When I print the word document the "if" function prints and not the graphic! How do I resolve this?

Quote:
Originally Posted by TimTDP
Not quite!
The error message disappears, but so does the graphic (Logo) in valid entries.
  #5   Report Post  
Graham Mayor
 
Posts: n/a
Default

Your reproduced field missed out the essential part.

{ IF { MERGEFIELD Logo } "" "{ INCLUDEPICTURE { MERGEFIELD Logo }}"}

Merge to a new document then select all CTRL+A and F9 to update.


--

Graham Mayor - Word MVP

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


TimTDP wrote:
Not quite!
The error message disappears, but so does the graphic (Logo) in valid
entries.

Doug Robbins Wrote:
Use the following field construction

{ IF { MERGEFIELD Logo } "" { INCLUDEPICTURE { MERGEFIELD Logo } } ""
}

--
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
"TimTDP" wrote in message
...-

I do a mail merge from Access. The merge consists of two fields,
namely
ProductCode and Logo. I use the IncludePicture function to include
the
Logo in the merge. This works well.
However I want to expand this to include an "if" function so that if
the field "Logo" is empty, no error message appears in the merged
document.

Any help will be appreciated!


--
TimTDP-





  #6   Report Post  
Doug Robbins
 
Posts: n/a
Default

ToolsOptionsPrint and uncheck Field codes in the Include with document
section of the dialog.

--
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
"TimTDP" wrote in message
...

When I print the word document the "if" function prints and not the
graphic! How do I resolve this?

TimTDP Wrote:
Not quite!
The error message disappears, but so does the graphic (Logo) in valid
entries.



--
TimTDP



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
Help to merge Image (Doug Robins?) JohnB Mailmerge 21 June 23rd 05 05:28 PM


All times are GMT +1. The time now is 02:29 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"