Consulting

Results 1 to 3 of 3

Thread: Saving a record

  1. #1
    VBAX Regular
    Joined
    Nov 2018
    Posts
    41
    Location

    Saving a record

    On a form I want to save a record by clicking a button. What should be the code for the SAVE button?

  2. #2
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,296
    Location
    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

  3. #3
    VBAX Regular
    Joined
    Nov 2018
    Posts
    41
    Location
    Quote Originally Posted by OBP View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •