Note quite VB I suppose its Maths really

p0welly

Registered User.
Local time
Today, 02:43
Joined
Aug 26, 2004
Messages
38
I cant get my head round this and I know it should be simple.

I have:

txtOldPrice

txtIncreasePercentage

txtNewPrice

Customer enters his current price in txtOldPrice, enters a figure such a 15 in the txtIncreasePercentage and txtNewPrice will = txtOldPrice +15%

it would be simple to enter the % as .10 or .15 and simply multiply it by the oldprice however the customer wants simplicity so it has to be whole numbers in the percent box.

Any Ideas?
 
txtNewPrice = txtOldPrice*(1 +txtIncreasePercentage/100)

^
 
Thank you very Much
 

Users who are viewing this thread

Back
Top Bottom