Bob Dudley
|
Posted: 09/23/2003, 6:15 AM |
|
Could someone assist me please?
I am building a basic page with a grid showing items searched including:
Part number, description, size, cost, list.
I would like to add a field that is calculated on the fly taking the cost and adding 30% to get the discount retail price.
I'm using CodeCharge Studio V2.2, MS Access, IIS 5, output to ASP.
|
|
|
arrowgance
|
Posted: 09/30/2003, 10:07 PM |
|
The solution is add a label name it lbl_Discount (you know how to add labels right? Like link, textbox, hidden...etc.)
As I Visualize your page
Part number------description-----size--------cost-----discount---------list
{PN}----------------{desc}-------{size}------{cost}---{lbl_Discount}---{list}
--------------------{Page}-----------------------
And then click lbl_Discount go to it's before show event
add the code or I do not know really the formula you want???
yourformname.lbl_Discount.Value = yourformname.cost.Value + .30
|
|
|
|