Hi all,
I have an app. which stores individual items into ORDERS.DBF. These items are added throughout the week as and when an order comes in for a particular product.
I store the items as seperate files as I found that this also doubles as a order log.
My problem arises when I wish to update the order summary which takes the form of 4 seperate list boxes. Each list box displays the appropriate records as a result of an SQL statement.
Here`s the problem - The list box displays each order line seperately ie.
ITEM 1 - 3
ITEM 2 - 5
ITEM 1 - 3
ITEM 1 - 4
ITEM 2 - 2
Very confusing, So I want to diaplay totals of each, in the list box as follows:-
ITEM 1 - 10
ITEM 2 - 7
Do I need to create another cursor or can this be achieved through modifying my SQL statement.
SELECT order2.MOULD_REF, MOULDING.MOULD_NAM,order2.fwidth, ;
order2.fheight, order2.QTY ;
FROM order2 INNER JOIN MOULDING ;
ON order2.MOULD_REF = MOULDING.MOULD_REF;
WHERE order2.FRINTON<>"FR" AND order2.flength=0 AND order2.ORDERED<>"Y" ;
AND order2.MARKD<>"Y";
ORDER BY order2.fwidth ;
INTO ARRAY LENFRAME
Thanks in advance
Keith
I have an app. which stores individual items into ORDERS.DBF. These items are added throughout the week as and when an order comes in for a particular product.
I store the items as seperate files as I found that this also doubles as a order log.
My problem arises when I wish to update the order summary which takes the form of 4 seperate list boxes. Each list box displays the appropriate records as a result of an SQL statement.
Here`s the problem - The list box displays each order line seperately ie.
ITEM 1 - 3
ITEM 2 - 5
ITEM 1 - 3
ITEM 1 - 4
ITEM 2 - 2
Very confusing, So I want to diaplay totals of each, in the list box as follows:-
ITEM 1 - 10
ITEM 2 - 7
Do I need to create another cursor or can this be achieved through modifying my SQL statement.
SELECT order2.MOULD_REF, MOULDING.MOULD_NAM,order2.fwidth, ;
order2.fheight, order2.QTY ;
FROM order2 INNER JOIN MOULDING ;
ON order2.MOULD_REF = MOULDING.MOULD_REF;
WHERE order2.FRINTON<>"FR" AND order2.flength=0 AND order2.ORDERED<>"Y" ;
AND order2.MARKD<>"Y";
ORDER BY order2.fwidth ;
INTO ARRAY LENFRAME
Thanks in advance
Keith