I understand that inputting data in a form in MS Access automatically updates the fields in the table. However, how do I disable this feature and instead allow a user to click a "Save" button at the end to update the records? Have been reading online that I need VBA etc. that I have no experience with.
相关问题
- Importing data from MS Access db to PostgreSQL db
- DoCmd.TransferSpreadsheet is not recognizing works
- Is there a way to apply theme on converted access
- How to programmatically convert Access 1997 .mdb t
- Multiple (left, cross?) JOINs in MS Access
相关文章
- COALESCE, IFNULL, or NZ() function that can be use
- CurrentDb.RecordsAffected returns 0. Why?
- How to embed ms-access forms in C# module?
- Sleep Lib “kernel32” gives 64-bit systems error
- How to destroy an object
- Close all VBE windows (MS Access, VB for Aplicatio
- Compiling an Access 2007 accdb into accde
- MS Access VBA: turn query results into a single st
Another way to do this would be to use a pair of text boxes. One is bound to the database and the other is not. The bound text box would not be visible.
Code for the save button..
You can get into specific conditions...
This can only be done in code.
You need to set a module level boolean variable to control saving (auto vs manual) and set its value to True when the save button is clicked.
Unfortunately you cannot disable autosaving in forms. As a workaround you can copy data to temporary table, allow user to edit the data as needed and by clicking "Save" button copy changed data back to main table.
Also as a workaround can be used canceling record saving as it described in the answer of @Kostas K. within one form, but in this case you won't be able to change edited record or use any controls outside of edit form if it is a subform, so Save button should be located on the same form as edited data.