Try this:
If TypeOf ActiveForm Is YourFormName Then
YourFormName.datprimaryrs.recordset.cancelupdate
End If


YourFormName should be the name of your form from a property window, not it's caption.