Syntax Error when executing expression for non-existant data

L

Lily

Hi
In order to use percentages in my mail merge document, I had to add an expression statement similar to {=(MEERGEFIELD "whatever"}*100\# "0.00%"}. In this situation, if the mergefield is not filled, a syntax error is posted. Is there a way that I can test for the existance of data prior to executing the statement

Thanks
Lily
 
P

Peter Jamieson

Try something like

{ IF "{ MERGEFIELD "whatever" }" = ""
"result you want for null"
"{ ={ MERGEFIELD "whatever"}*100 \# "0.00%" }" }



--
Peter Jamieson

Lily said:
Hi -
In order to use percentages in my mail merge document, I had to add an
expression statement similar to {=(MEERGEFIELD "whatever"}*100\# "0.00%"}.
In this situation, if the mergefield is not filled, a syntax error is
posted. Is there a way that I can test for the existance of data prior to
executing the statement?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top