Results 1 to 5 of 5
  1. #1
    brobb56 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    65

    Save and close


    I have a form that I want a button that will save the form and close the form. Can someone help.

  2. #2
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    229
    In design mode, make sure the 'Use Control Wizards' option is selected.
    Then, when you create a button, the wizard will guide you with a vast choice of options.

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Are you wanting to save the actual form, or save the data that was just entered on the form?

    If you want to save the data that was just entered on the form, you can create a button, and choose Record Operations ---> Save Record, and once that button is pressed, all data that is entered on the form, will be saved to the table.

    And if you add this line of code into the same onclick() event of your save button you can save and close:
    Code:
    DoCmd.Close acForm, "FormName"

  4. #4
    brobb56 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    65
    In access 2010 there is no 'Use Control Wizards' option unless I am looking in the wrong place.

  5. #5
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    229
    Open the form in Design View and then under Design Ribbon, look for it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. do NOT save record on close (x button)
    By benjammin in forum Forms
    Replies: 12
    Last Post: 03-15-2013, 02:54 AM
  2. Can't save or close form
    By Buakaw in forum Forms
    Replies: 4
    Last Post: 07-26-2011, 04:47 AM
  3. Prompt on close and don't save the null record
    By hasanrazaj1 in forum Forms
    Replies: 2
    Last Post: 10-24-2010, 09:24 AM
  4. form won't save and close
    By Philislost in forum Access
    Replies: 6
    Last Post: 10-08-2010, 01:47 PM
  5. Replies: 2
    Last Post: 01-29-2010, 11:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums