Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
Not quite!
The error message disappears, but so does the graphic (Logo) in valid entries. Quote:
|
#4
|
|||
|
|||
When I print the word document the "if" function prints and not the graphic! How do I resolve this?
Quote:
|
#5
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help to merge Image (Doug Robins?) | Mailmerge |