Undo last save

R

RGFlade

I have a form that list all people waiting and it has a button called
"Completed" when the staff member presses the button it changes the status
from x to y. However, I would like to put a button one the page to allow
them to roll back or unsave the last "completed". Can you tell me how to do
this? Thanks
 
R

Rob Oldfield

You just need to store the relevant PK each time the completed button is
hit - either in a global variable or in a table. When the user then hits
Undo you just need to run the SQL to put the value back to x.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top