I am having a challenge with Access 2016.
I have created a button to update one attribute with another. Example: QTY Value Quantity Request Value Remaining Stock Qty Value
I want to use a button to update the QTY value with the remaining stock qty value.
Private Sub Command67_Click()
Set QTY = QTY - QRAmount
Update Form_PartRequest
End Sub
But when I click the button nothing happens. What I'm missing?
If "attribute" means a field of the table the form is bound to, then:
Private Sub Command67_Click()
Me!QTY.Value = Me!QTY.Value - Me!QRAmount.Value
Me.Dirty = False
End Sub
Rename the controls to something meaningful.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.