hello i have a problrm with a from .
when i start entering data it auto save it.
i added this code : (i found it here)
Private Sub Command23_Click()
If MsgBox("do you want to save?", vbOKCancel, "save event") = vbOK Then
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Else
Me.Undo
End If
end sub
but it got no meaning bcoz access saves the data anyway.
how can i save only if the user press the ok botton?
Thank you.
when i start entering data it auto save it.
i added this code : (i found it here)
Private Sub Command23_Click()
If MsgBox("do you want to save?", vbOKCancel, "save event") = vbOK Then
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Else
Me.Undo
End If
end sub
but it got no meaning bcoz access saves the data anyway.
how can i save only if the user press the ok botton?
Thank you.