I posted this question in the javascript forum
I have a web page that displays data in a table from a databse however the number of rows can change based on the criria selected.
I have a column that shows the order qty for a particular specification however there are 2 types of order
1. make product for stock
2. call off order from stock
If anyone could point me in the right direction it would be much appeciated
such as
spec_number order type order qty
12345 make stock 10000
12345 call off stock 5000
what i would like is to have another column that shows current stock like so
spec_number order type order qty current
12345 make stock 10000 10000
12345 call off stock 4000 6000
12345 make stock 5000 11000
is it possible to recreate this so that it looks at the current stock on the line above and depending on the stock type either adds or deletes the order qty to the relevant row field.
**********************************************************
and it was suggested by Dan that
"This is very possible, however, given you've got server-side scripting to read from a database, I'd suggest doing this server-side rather than client-side."
So I was wondering whether anyone could point me in the right direction please
This is my access SQL
SELECT tblTopUpCallOffOrders.spec_number, tblTopUpCallOffOrders.date_ordered, tblTopUpCallOffOrders.due_date, tblTopUpCallOffOrders.Job_number, tblTopUpCallOffOrders.QtyOrdered, tblTopUpCallOffOrders.OrderType, 0 AS CurrentStock
FROM tblTopUpCallOffOrders
WHERE (((tblTopUpCallOffOrders.spec_number)="229895"))
ORDER BY tblTopUpCallOffOrders.due_date;
Regards
Paul
I have a web page that displays data in a table from a databse however the number of rows can change based on the criria selected.
I have a column that shows the order qty for a particular specification however there are 2 types of order
1. make product for stock
2. call off order from stock
If anyone could point me in the right direction it would be much appeciated
such as
spec_number order type order qty
12345 make stock 10000
12345 call off stock 5000
what i would like is to have another column that shows current stock like so
spec_number order type order qty current
12345 make stock 10000 10000
12345 call off stock 4000 6000
12345 make stock 5000 11000
is it possible to recreate this so that it looks at the current stock on the line above and depending on the stock type either adds or deletes the order qty to the relevant row field.
**********************************************************
and it was suggested by Dan that
"This is very possible, however, given you've got server-side scripting to read from a database, I'd suggest doing this server-side rather than client-side."
So I was wondering whether anyone could point me in the right direction please
This is my access SQL
SELECT tblTopUpCallOffOrders.spec_number, tblTopUpCallOffOrders.date_ordered, tblTopUpCallOffOrders.due_date, tblTopUpCallOffOrders.Job_number, tblTopUpCallOffOrders.QtyOrdered, tblTopUpCallOffOrders.OrderType, 0 AS CurrentStock
FROM tblTopUpCallOffOrders
WHERE (((tblTopUpCallOffOrders.spec_number)="229895"))
ORDER BY tblTopUpCallOffOrders.due_date;
Regards
Paul