stevem2004
10-01-2004, 12:04 PM
Hi,
I have a Access DB that has about 30 prices of products at present I am using a rather clumsy way to work out 10% of a product price.
<%
dim pcent, final, total
pcent = rs("item1") / 100
final = pcent * 10
total = rs("item1") + final
%>
In this example I have used the actual percentage value, in my app this comes from a user input form.
Is there an easier or better way to work this out?
TIA
Steve
I have a Access DB that has about 30 prices of products at present I am using a rather clumsy way to work out 10% of a product price.
<%
dim pcent, final, total
pcent = rs("item1") / 100
final = pcent * 10
total = rs("item1") + final
%>
In this example I have used the actual percentage value, in my app this comes from a user input form.
Is there an easier or better way to work this out?
TIA
Steve