Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to raise a value to a variable power in Form 1

Status
Not open for further replies.

LLBP

IS-IT--Management
Jan 31, 2002
39
US
I'm trying to build a price calculator. I need to be able to raise a value (1.1) to the power of the value in text box [Large]. Text box [PrePrice] calculates the price based on the price table, given the selected size of product. [Large] is a number of size increments above the listed sizes (user input). For each increment we charge an additional 10%. I tried
=IIf([Large]>0,[PrePrice]*(Power(1.1,[Large])),[PrePrice])
but I get #NAME?
Thanks for any assistance.
Brent
 


If, what you are after is:-
Code:
Large   Result
0       PrePrice * 1
1       PrePrice * 1.1
2       Preprice * 1.21
3       PrePrice * 1.331
Is that what you are wanting ?

Then try simply

Code:
=[PrePrice]*(1.1^([Large]))



'ope-that-'elps.












G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.
 
Thank you much. I actually tried that symbol but didn't inclose [Large] in parenthesis.

Thanks again,
Brent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top