Thread: MERGEFIELDS
View Single Post
  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Nathan Franklin
 
Posts: n/a
Default MERGEFIELDS

Graham,

I do get the value 1 if I just have that mergefield in the doc.... the
problme is I need to use IF statements to display the applicable thing based
on the value.... I dont get any format errors... But just no value appears
when useing the if statement...

im not sure what to do....

"Graham Mayor" wrote in message
...
This should work as you have it. If you merge the document with
{Mergefield PowerConnected}
what result do you get, when you think you should be getting "1"?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Nathan Franklin wrote:
Hello all,

When I do a mail merge with VB, I am trying to update a certain value
on my word document...
It is using an IF field... But on the new merged document it just
appears blank with no value

{ IF{MERGEFIELD PowerConnected } = 1 "Note: Power was connected at
time of inspection." "Note: Power was not connected at time of
inspection." }
In the data I am passing PowerConnected does equal 1 ... is there
anything you could suggest....
thanks

Nathan