Have been following several threads on this subject. Lack of coding experience is hampering me. I have:
Table tstPdt
ProductID
ProductDescription
ReorderLevel
LeadTime
SOH (stock on hand)
Table tstInvTra
TransactionID
TransactionDate
ProductID
Units
TransactionDescription
BinLocation
TransType
SubType
Form tstAddStock (made with wizard from tstInvTra)
TransactionDate
ProductID
Units
TransactionDescription
BinLocation
TransType
SubType
Code to make form update Table tstPdt
Units on Exit
Private Sub Units_Exit(Cancel As Integer)
Update
![tstPdt]
Set [tstPdt]![SOH] = [SOH] + [Forms]![tstAddStock]![Units]
where
![tstPdt]![ProductID] = [Forms]![tstAddStock]![ProductID]
End Sub
I get compile errors. Am assuming that something has to be defined but not really sure what I'm doing. Would really appreciate some input. Also, wondered if there was a problem with SOH kind of looping back on itself.
Thank you
Table tstPdt
ProductID
ProductDescription
ReorderLevel
LeadTime
SOH (stock on hand)
Table tstInvTra
TransactionID
TransactionDate
ProductID
Units
TransactionDescription
BinLocation
TransType
SubType
Form tstAddStock (made with wizard from tstInvTra)
TransactionDate
ProductID
Units
TransactionDescription
BinLocation
TransType
SubType
Code to make form update Table tstPdt
Units on Exit
Private Sub Units_Exit(Cancel As Integer)
Update
Set [tstPdt]![SOH] = [SOH] + [Forms]![tstAddStock]![Units]
where
End Sub
I get compile errors. Am assuming that something has to be defined but not really sure what I'm doing. Would really appreciate some input. Also, wondered if there was a problem with SOH kind of looping back on itself.
Thank you