I am working on a visual basic project where i have a form where i am showing the data from the table. On one of the field i am allowing user to change the data. How can i disregard chages if the user exit the form.
I believe that you can, if you are using bound controls, use the CancelUpdate() method of the recordset object that you have bound to. You have to check the status of the recordset first. There may be other statuses that you need to check for but the following code should work.
If (rs.State And adRecModified) Or (rs.State And adRecNew) Then
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.