General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
I have a form that allows editing of records. I want to be able to cancel the edits or save them. My cancel isn't working properly. I click on my edit button and it allows the user to edit the record. The user can then hit the save or cancel buttons. If the user hits cancel I want all the changes made not to show up but they do. How can I fix this? Here is my code for the edit, and cancel buttons.
When user clicks on edit.
m.isediting2 = .T.
*return to the record when cancelling
prevrec = recno()
When user hits cancel
*go back to the record before edits were made
go prevrec
thisformset.refresh
This isn't working and the edits are being stored in the table temporarily. The edits aren't saved but they stay in the table till I exit the application and run it again. What can I do to cancel the edits?
Thanks,
Tyler
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only