Results 1 to 3 of 3
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Macro changes to form won't save

    Hi,



    I added a couple of button to a form to load records from a query, save them to a table and close the form (three different buttons). The last one (to close the form) work when I wrote (rewrite) it but once the form is closed and reopens, the macro is not there. The marco is saved once written. Any ideas what I am doing wrong?

    Take care,

    Daryl

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Is the command button still there?

    I don't use macros, but here is some VBA to accomplish this the same.

    Code:
    DoCmd.Close , ""
    Put this in the on click event for the button.

  3. #3
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks. Worked perfect. Just a follow up...why the double quotes? (This is my first experience with code).

    Take care,

    Daryl

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

Similar Threads

  1. A save macro
    By Sune in forum Programming
    Replies: 4
    Last Post: 11-09-2011, 04:36 AM
  2. Macro to save report to PDF with custom name
    By chris.williams in forum Programming
    Replies: 2
    Last Post: 10-13-2011, 02:34 PM
  3. Create macro save report as PDF
    By bishop in forum Access
    Replies: 3
    Last Post: 09-17-2011, 11:50 AM
  4. Replies: 9
    Last Post: 01-20-2011, 02:22 PM
  5. Help Require (Macro Save button )?????
    By aligahk06 in forum Access
    Replies: 1
    Last Post: 04-18-2010, 08:38 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