PDA

View Full Version : Saving a record



Kundan
12-05-2018, 10:01 PM
On a form I want to save a record by clicking a button. What should be the code for the SAVE button?

OBP
12-06-2018, 02:34 PM
Why would you want to?
Access automatically saves any input or changes to any open record on the Form.
The code by the way is
RunCommand acCmdSaveRecord

Kundan
12-06-2018, 09:18 PM
Why would you want to?
Access automatically saves any input or changes to any open record on the Form.
The code by the way is
RunCommand acCmdSaveRecord


On a form I have a PRINT button. If after typing the record I click the PRINT button when the pencil mark is still there then it will not print the typed record(which is not saved). Hence I want to include a code in the click event of the PRINT button to first save the record and then print.