Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Tom Tom is offline
external usenet poster
 
Posts: 153
Default Calculations inside nested if statements

Hi I am using word 2007. I have a mail merge in which I am using nested if
statements . I want to assign a customer discount for the balance based on
the city of residency. For example, If they live in Akron , I want the bill
reduced by 10%. If they live in Cleveland I want the bill to be reduced by
12% and so on.

I have a field called TotalAccountBalance that is being passed back to word
from an access database calculated query. I tried {if{city}="Akron"
"{TotalAccountBalance}-{Total Account Balance *.10}" and so forth. I believe
this can be done. Can anyone help? Thanks

Tom
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Calculations inside nested if statements

I guess the "Can anyone help?" (which I thought was odd phrasing) should
have been the tipoff that your identical question directed to me at
AllExperts (which I have answered) was not directed to me alone. sigh

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Tom" wrote in message
...
Hi I am using word 2007. I have a mail merge in which I am using nested if
statements . I want to assign a customer discount for the balance based on
the city of residency. For example, If they live in Akron , I want the
bill
reduced by 10%. If they live in Cleveland I want the bill to be reduced by
12% and so on.

I have a field called TotalAccountBalance that is being passed back to
word
from an access database calculated query. I tried {if{city}="Akron"
"{TotalAccountBalance}-{Total Account Balance *.10}" and so forth. I
believe
this can be done. Can anyone help? Thanks

Tom


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Calculations inside nested if statements

Answered by me in microsoft.public.word.vba.general too!

Tom: Please see http://www.excelguru.ca/node/7

--
Cheers
macropod
[Microsoft MVP - Word]


"Suzanne S. Barnhill" wrote in message ...
I guess the "Can anyone help?" (which I thought was odd phrasing) should
have been the tipoff that your identical question directed to me at
AllExperts (which I have answered) was not directed to me alone. sigh

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Tom" wrote in message
...
Hi I am using word 2007. I have a mail merge in which I am using nested if
statements . I want to assign a customer discount for the balance based on
the city of residency. For example, If they live in Akron , I want the
bill
reduced by 10%. If they live in Cleveland I want the bill to be reduced by
12% and so on.

I have a field called TotalAccountBalance that is being passed back to
word
from an access database calculated query. I tried {if{city}="Akron"
"{TotalAccountBalance}-{Total Account Balance *.10}" and so forth. I
believe
this can be done. Can anyone help? Thanks

Tom


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Tom Tom is offline
external usenet poster
 
Posts: 153
Default Calculations inside nested if statements

I apologize for the cross posting. I was just trying any available resource
to find an answer quickly. Your answer was greatly appreciated.
Tom

"Suzanne S. Barnhill" wrote:

I guess the "Can anyone help?" (which I thought was odd phrasing) should
have been the tipoff that your identical question directed to me at
AllExperts (which I have answered) was not directed to me alone. sigh

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Tom" wrote in message
...
Hi I am using word 2007. I have a mail merge in which I am using nested if
statements . I want to assign a customer discount for the balance based on
the city of residency. For example, If they live in Akron , I want the
bill
reduced by 10%. If they live in Cleveland I want the bill to be reduced by
12% and so on.

I have a field called TotalAccountBalance that is being passed back to
word
from an access database calculated query. I tried {if{city}="Akron"
"{TotalAccountBalance}-{Total Account Balance *.10}" and so forth. I
believe
this can be done. Can anyone help? Thanks

Tom



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Calculations inside nested if statements

I just happened to get the email before I saw this NG; otherwise the answer
would have been here first. But I suppose it would have been helpful if the
AllExperts question had mentioned that you had also posted the question to
the NG. In that case, I think I would have preferred to reply here, for the
benefit of more users (especially since your AE question was posted as a
"private" one).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Tom" wrote in message
...
I apologize for the cross posting. I was just trying any available resource
to find an answer quickly. Your answer was greatly appreciated.
Tom

"Suzanne S. Barnhill" wrote:

I guess the "Can anyone help?" (which I thought was odd phrasing) should
have been the tipoff that your identical question directed to me at
AllExperts (which I have answered) was not directed to me alone. sigh

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Tom" wrote in message
...
Hi I am using word 2007. I have a mail merge in which I am using nested
if
statements . I want to assign a customer discount for the balance based
on
the city of residency. For example, If they live in Akron , I want the
bill
reduced by 10%. If they live in Cleveland I want the bill to be reduced
by
12% and so on.

I have a field called TotalAccountBalance that is being passed back to
word
from an access database calculated query. I tried {if{city}="Akron"
"{TotalAccountBalance}-{Total Account Balance *.10}" and so forth. I
believe
this can be done. Can anyone help? Thanks

Tom





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
Nested If Statements in Word 2007 Amy E. Baggott Microsoft Word Help 1 July 23rd 09 01:46 AM
Nested If statements mmikula Mailmerge 2 October 28th 08 07:48 PM
Calculations and nested IF statements JKeef Microsoft Word Help 0 October 16th 07 04:39 PM
Grouping Nested If Statements [email protected] Mailmerge 6 September 7th 07 08:33 AM
Nested If statements in MS Word 2003 - Help! crun Mailmerge 1 April 12th 06 08:10 AM


All times are GMT +1. The time now is 05:43 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"