Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If statement and blank lines
I know this question has been posted before and I have tried multiple
solutions but they have not worked in my document. Help in solving this issue would be appreciated. In my document (I use Word 2002) I have the following statements: {If {MERGEFIELD FY04} 0 "FY04: {MERGEFIELD "FY04"\ $##,###}" ""}[RETURN] {If {MERGEFIELD FY05 0 "FY05: {MERGEFIELD "FY05"\ $##,###}" ""}[RETURN] {If {MERGEFIELD FY06 0 "FY06 {MERGEFIELD "FY06\ $##,###}" ""}[RETURN] I am using the three if statements to show transaction data for fiscal years. The if statements work but I have a blank line for those years that are 0. I have tried nesting but was unclear on how to include the text within the merge. Thanks Di |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
If statement and blank lines
Try the following construction
{If {MERGEFIELD FY04} 0 "FY04: {MERGEFIELD "FY04"\ $##,###}" {If {MERGEFIELD FY05 0 " [RETURN] FY05: {MERGEFIELD "FY05"\ $##,###}" {If {MERGEFIELD FY06 0 "[RETURN] FY06 {MERGEFIELD "FY06\ $##,###}" ""}}} -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "direynolds" wrote in message ... I know this question has been posted before and I have tried multiple solutions but they have not worked in my document. Help in solving this issue would be appreciated. In my document (I use Word 2002) I have the following statements: {If {MERGEFIELD FY04} 0 "FY04: {MERGEFIELD "FY04"\ $##,###}" ""}[RETURN] {If {MERGEFIELD FY05 0 "FY05: {MERGEFIELD "FY05"\ $##,###}" ""}[RETURN] {If {MERGEFIELD FY06 0 "FY06 {MERGEFIELD "FY06\ $##,###}" ""}[RETURN] I am using the three if statements to show transaction data for fiscal years. The if statements work but I have a blank line for those years that are 0. I have tried nesting but was unclear on how to include the text within the merge. Thanks Di |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using an If Statement | Mailmerge | |||
Mergefield with comma, suppress comma if field blank | Mailmerge | |||
Display text if a group of mergefields are blank | Mailmerge | |||
Supress blank lines | Mailmerge | |||
Hard returns in an If-Then-Else statement | Mailmerge |