I have a form and it has two fields (cboBroker and txtDate) and after the user clicks a cmd button, a recordsource is generated. I have all the records shown on one screen where the user is able to change the values in the recordsource. However, I was reading that ADO automatically updates the fields in the database without any command. I want to override this feature and have it so that the user has to click another command button (Commit Changes) to update the fields, otherwise, discard all updates. I was unable to use .CancelUpdate on an AfterUpdate event. I have
Code:
Private sub txtQuantity_AfterUpdate()
With Me.Recordset
.Edit
.CancelUpdate
End With
But it doesn't work. Any suggestions? (I would not want to use DAO, because this project was given to me and the previous person coded a lot of it using ADO)