Preventing close buttons from saving records in MS Access

后端 未结 6 1208
小蘑菇
小蘑菇 2021-02-10 11:42

In a Microsoft Access form, whenever the current record changes, any changes in bound controls are silently saved to the database tables. This is fine, but I don\'t want it to h

6条回答
  •  梦毁少年i
    2021-02-10 12:28

    In the Form in the 'On Unload' event add the below code.

    DoCmd.RunCommand acCmdUndo
    DoCmd.Quit
    

    Records no longer being saved when users close a form in any way.

提交回复
热议问题