SteveL13
asked on
How make field update in a form
Am expert helped me with the previous solution but now I need the available qty to update after each previous record has been entered.
Please see attachment
Test3.accdb
Please see attachment
Test3.accdb
ASKER
Yes. If the remaining qty is equal to 0 then the record should not show up.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes. You are correct. Thank you again!
i see now that you have a field ReadyQty and AvailableQty, do you want to update the AvailableQty after each shipment ?
ASKER
Yes.
you have their ReadyQty, DumpedQty, AvailableQty, InventoryQty
what is the purpose of this fields, and which one do you need to be updated ?
what is the purpose of this fields, and which one do you need to be updated ?
If you want to update the DumpedQty field with total qty you already shipped, then you can add code in subfrmShipmentNEW
Private Sub Form_AfterUpdate()
CurrentDb.Execute "UPDATE tblReady SET tblReady.DumpedQty = Nz(DSum(""ShipQty"",""tblShipmentDetails"",""ShipmentReadyID=" & Me.ReadyID & """),0);"
End Sub
ASKER
Thanks again.
Is this what you needed ?
as i wrote before