Solved

Undo record update ?

Posted on 1998-09-16
2
192 Views
Last Modified: 2010-04-30
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.
0
Comment
Question by:ismahwati
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
a111a111a111 earned 50 total points
ID: 1435337
Make a buffer such as a text box (non visible)
or a variable that will John and save it then if you typed
Maria and want to undo just click on the command that will
get john back and update.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1435338
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 ==========
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question