I have two tables. one is stock
and the other one is shipping information
Example Table Stock
PARTNO QTYONHAND
A 50
B 25
C 5
D 10
E 20
EXAMPLE OF TABLE SHIP
CUSTOMER PTNO SHIPQTY DIFFERENCE
ABC A 45 5
BDF A 10 -5
CDF A 50 -55
AER B 1 24
I Don't know how to get the difference column
For example for part A there is 50 in stock. If I ship 45 to customer A, The difference is 5 which is the new stock
If I ship 10 to customer B, There is only 5 in stock, so the differnce is -5.
Can anyone give me any suggestions on how do it. I am using access 97
and the other one is shipping information
Example Table Stock
PARTNO QTYONHAND
A 50
B 25
C 5
D 10
E 20
EXAMPLE OF TABLE SHIP
CUSTOMER PTNO SHIPQTY DIFFERENCE
ABC A 45 5
BDF A 10 -5
CDF A 50 -55
AER B 1 24
I Don't know how to get the difference column
For example for part A there is 50 in stock. If I ship 45 to customer A, The difference is 5 which is the new stock
If I ship 10 to customer B, There is only 5 in stock, so the differnce is -5.
Can anyone give me any suggestions on how do it. I am using access 97