Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / May 2004

Tip: Looking for answers? Try searching our database.

Syntax Error when executing expression for non-existant data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lily - 12 May 2004 18:16 GMT
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
Peter Jamieson - 12 May 2004 21:26 GMT
Try something like

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

Signature

Peter Jamieson

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.