Re: Avoiding aggregation using stored procedures -
07-14-2004
, 05:15 AM
I have 3 pages;
Customer Overview - this provides a client overview with subtotals of product
data Options on this page to add new customer
Customer detail - this page contains a list of products for each customer that
is under development Options on this page to add new products
Product detail - on clicking on a product in the customer detail page this
shows the inividual product in question and gives the opportunity to edit or
delete
I have three tables in the database; a users table for logins, a cust_overview
table with CUSTID and CUSTOMER and a products table with CUSTID, PRODID,
PRODUCTREFERENCE, TONNESPERANNUM, SELLINGPRICE, RM etc
On customer detail and product detail the add and edit function share the same
form design. The end user enters data for productreference, tonnesperannum,
selling price and raw material (RM)%. These figures are stored on an sql server
database and from them I have created recordsets that calculate ADDED VALUE,
TURNOVERPERANNUM and ANNUAL CONTRIBUTION.
The recordsets work fine on the product detail page because they pass the
"Request.QueryString("PRODID") parameter but they dont work on the customer
detail page because the variable isnt passed on the url.
In the code on the above post, which is one of the calculations for the
customerdetail page, If i change the Request.QueryString to ("PRODID") which
works on the product detail page it doesnt work because there isnt a PRODID on
the url to request.
I hope my description makes sense!! |