On a form I want to save a record by clicking a button. What should be the code for the SAVE button?
On a form I want to save a record by clicking a button. What should be the code for the SAVE button?
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.