I have a "txtAmount" textbox with an AfterUpdate event that runs an update query on another record based on the new value of txtAmount. I need to be sure that the user can never change the value in txtAmount without this update query firing.
But if the user changes the amount, saves the record, and then hits ctrl-Z (or the undo button at the top of the screen) it will set "Amount" back to what it used to be without triggering any event as far as I can tell.
So my question is this: is there a way to either prevent the undo or to have the undo trigger an event that I can use to run another update query?
The Form_Undo event appears to be useless because it only seems to fire when the user cancels changes to a dirty record (e.g., hitting escape key), not when undo is called after the record has saved.
I was thinking maybe there would be some way to save the record such that the change couldn't be undone, but I can't figure it out. RunCommand acCmdSaveRecord doesn't work.
Anyone have any ideas?
But if the user changes the amount, saves the record, and then hits ctrl-Z (or the undo button at the top of the screen) it will set "Amount" back to what it used to be without triggering any event as far as I can tell.
So my question is this: is there a way to either prevent the undo or to have the undo trigger an event that I can use to run another update query?
The Form_Undo event appears to be useless because it only seems to fire when the user cancels changes to a dirty record (e.g., hitting escape key), not when undo is called after the record has saved.
I was thinking maybe there would be some way to save the record such that the change couldn't be undone, but I can't figure it out. RunCommand acCmdSaveRecord doesn't work.
Anyone have any ideas?