Link to home
Start Free TrialLog in
Avatar of ismahwati
ismahwati

asked on

Undo record update ?

i have a vb program attached to an access table.
How to write codes to undo any changes i;ve made
in one record. For example , name : first i key in John,
then i delete it and type in Maria. I need a button that
when clicked will undo maria to john back. thanks.
ASKER CERTIFIED SOLUTION
Avatar of a111a111a111
a111a111a111

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of a111a111a111
a111a111a111

A simple example:

=========Code start =========

Option Explicit
Dim A

Private Sub Command1_Click()
Text1.Text = A
End Sub

Private Sub Command2_Click()
Dim X
A = Text1.Text
X = InputBox("Enter a Name", "Update")
Text1.Text = X
End Sub

======== Code End ==========