Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
IF statement
I want to include an IF statement when the data source is only added at run
time. I am merging a document which does not have a data source already. My (Delphi) program adds the data source at run time to my document and then runs the merge. This works fine for standard merge fields such as: «FirstName» «LastName» I need the syntax for something like: IF «FirstName» blank If my document already has the data source attached and I 'Merge to New Document" it works fine. Thanks, Steve. |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
IF statement
Update:
Funny how a fresh look gives the answer - must try fitting head on correctly next time. I added my data source to a test document, got the syntax correct. Copied the code back to my original document and all worked correctly, when running dynamically. Steve. "Sawlmgsj" wrote: I want to include an IF statement when the data source is only added at run time. I am merging a document which does not have a data source already. My (Delphi) program adds the data source at run time to my document and then runs the merge. This works fine for standard merge fields such as: «FirstName» «LastName» I need the syntax for something like: IF «FirstName» blank If my document already has the data source attached and I 'Merge to New Document" it works fine. Thanks, Steve. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IF statement | Microsoft Word Help | |||
which statement right , question is Choose the correct statement? | Microsoft Word Help | |||
which statement right , question isChoose the correct statement? | Microsoft Word Help | |||
if statement | Microsoft Word Help | |||
OR statement | Mailmerge |