I tried with beforeupdate but not working...
i think wrong rutine code
Private Sub Form_AfterInsert()
dim response as integer
response = Msgbox("Do you want to save this record?", vbYesNo, "Save record")
If response = vbNo then
Me.Undo
Else
Msgbox("Record not saved")
End if
End Sub
Is good code but unfortunattely no work well with datasheet subform whit most of one record
thanks a lot
This situation is many spoken in all forum but there is no well definitive solution .I think that this is a trouble of access very important to resolve in the new release if possible.....
Dim ctrl As Control
For Each ctrl In Me.Controls
If ctrl.ControlType = acTextBox Then
ctrl.Value = ctrl.OldValue
End If
Next