Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Oly
 
Posts: n/a
Default Mailmerge calculations syntax

Hi there

I'm currently looking at doing some mailmerge calculations. I want to get
some examples of some of the syntax involved, for instance, division,
multiplication, and formatting the results properly on screen. Here's an
example:-

{={ MERGEFIELD CourseBookingCostByStatus_SumTuitionCost \* MERGEFORMAT} /
{MERGEFIELD CourseBooking_NumberofStudents } \# "£#,##0.00 } }

For instance, i'm trying to get word to divide the total cost of a training
course by the number of students enrolled - yet when the calcuation is
performed, it shows {= 32456.4300 / 3}, instead of the actual result.

Can someone help? Just think i need some syntax examples to follow..

many thanks

Ol
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default Mailmerge calculations syntax

You have to insert all the field boundaries with CTRL+F9. The syntax then is

{=({ MERGEFIELD CourseBookingCostByStatus_SumTuitionCost} / {MERGEFIELD
CourseBooking_NumberofStudents }) \# "£,0.00 } }

Note too that your data fieldnames are excessively long which will lead to
errors. Restrict fieldnames to 10 characters if possible.

--

Graham Mayor - Word MVP

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


Oly wrote:
Hi there

I'm currently looking at doing some mailmerge calculations. I want
to get some examples of some of the syntax involved, for instance,
division, multiplication, and formatting the results properly on
screen. Here's an example:-

{={ MERGEFIELD CourseBookingCostByStatus_SumTuitionCost \*
MERGEFORMAT} / {MERGEFIELD CourseBooking_NumberofStudents } \#
"£#,##0.00 } }

For instance, i'm trying to get word to divide the total cost of a
training course by the number of students enrolled - yet when the
calcuation is performed, it shows {= 32456.4300 / 3}, instead of the
actual result.

Can someone help? Just think i need some syntax examples to follow..

many thanks

Ol



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code in a mailmerge template Dixie Mailmerge 3 November 25th 05 06:35 AM
Word Mailmerge with Access via DDE Jim Gilligan Mailmerge 0 November 22nd 05 01:21 PM
Trying to suppress Select Table box in Excel-Word mailmerge Denise Mailmerge 4 June 21st 05 01:08 PM
Included Property in Word 2003 MailMerge Alessio Mailmerge 1 December 23rd 04 11:26 AM


All times are GMT +1. The time now is 01:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"