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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to move to next record without saving

Status
Not open for further replies.

helpneeded123

Technical User
Jun 21, 2006
2
IN
i have a form displaying records for a certain key value from a table. now every time i make some changes and move to the next record the changed record gets saved in the table. Is there a way to stop this?
 
On the BeforeUpdate event of the form do this:

Sub Form_BeforeUpdate(Cancel As Integer)

If (Me.Dirty) then Me.Undo

End Sub
 
For forms, you can use the BeforeUpdate event to cancel updating of a record before moving to another record. See online help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top