Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undo functionality in App

Status
Not open for further replies.

sdshort

Programmer
Mar 27, 2000
1
US
I'm using VB6 to access a SQL Server 7 Database through the VB data environment. I'm trying to incorporate 'undo' functionality into the App. Right now I'm trying to use 2 global variables  that contain the control name(globVar1) and the originalValue(globVar2).  These are loaded  before the active field of the recordset is updated.  When 'undo' is used the control in globVar1 is set to the value in globVar2. I was wondering if anyone here has had to deal with this or know of somewhere I can find out how to do this.  Thanks in Advance.
 
You might be able to use transactions to do this. <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Have a look at &quot;Commit&quot; and &quot;Rollback&quot;, much easier than trying to keep track of changes yourself.<br><br>Mike <p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top