Thread: IF statement
View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Sawlmgsj Sawlmgsj is offline
external usenet poster
 
Posts: 2
Default 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.