Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Undo record update ?

Posted on 1998-09-16
2
Medium Priority
?
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
a111a111a111 earned 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

610 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