D
DualFever
Hello i am trying to create a workshop program, it needs to keep all the
stock and once a part or tyre is fitted take it out of the stock.
So far so good, but i've got to a problem where i must subtract an amount
from a cell in a table called 'stocklist' to take away stock when its been
used, what code would i use to take away an amount in a text box(called
'quantitytxt') from a cell in a table the table is called 'stocklist' the
column called 'quantity' and it has to be the cell down where the coloumn
'part' is what the user has selected.
So some type of code like:
Dim bresult
bresult=MsgBox( "Stock","are you sure you want to remove " & quantitytxt & "
from " & parttxt "'s stock.", vbYesNo)
If bresult = True then
'now im not quite sure here how this works
stocklist.quantity - quantitytxt WHERE part = parttxt
EndIf
Or if theres a easier way through a macro or expression builder let me know
please , i hope you understand what im trying to achieve thanks for any help!
stock and once a part or tyre is fitted take it out of the stock.
So far so good, but i've got to a problem where i must subtract an amount
from a cell in a table called 'stocklist' to take away stock when its been
used, what code would i use to take away an amount in a text box(called
'quantitytxt') from a cell in a table the table is called 'stocklist' the
column called 'quantity' and it has to be the cell down where the coloumn
'part' is what the user has selected.
So some type of code like:
Dim bresult
bresult=MsgBox( "Stock","are you sure you want to remove " & quantitytxt & "
from " & parttxt "'s stock.", vbYesNo)
If bresult = True then
'now im not quite sure here how this works
stocklist.quantity - quantitytxt WHERE part = parttxt
EndIf
Or if theres a easier way through a macro or expression builder let me know
please , i hope you understand what im trying to achieve thanks for any help!