Results 1 to 3 of 3
  1. #1
    TattyFran is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2024
    Posts
    2

    Question Save macro not working in Office 365

    Hi

    I need to be able to create a Save macro for a form using the macro builder. In the past I've successfully done it using RunMenuCommand and then selecting SaveRecord

    This now gives me an error
    Click image for larger version. 

Name:	Access error.PNG 
Views:	22 
Size:	36.4 KB 
ID:	52377
    'The command or action 'Save Record' isn't available now'
    The error number is 2046 with arguments 97



    Interestingly, when I use the wizard to create a save button on the same form, then open the created macro and cut out everything apart from the identical command, it works fine.

    We use Access 365 but I think we were using this previously. Has anyone any ideas what's going on?

    I need to be able to make the macro using the builder rather than VBA for educational purposes, please don't suggest code solutions as I won't be able to use them

    Many thanks!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2021
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Perhaps your existing button control is corrupted. If you insist on using macros, why not just use the wizard to create a new button and delete the old one.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    TattyFran is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2024
    Posts
    2
    Hi,

    Thank you so much - you have helped me solve the problem, although I don't understand why!

    Basically, the macro that produces the error was built in macro builder without an attached button. I usually build macros first then attach them to buttons later (just a habit from teaching to help my (young) students understand that macro =/= button) Other macros relating to forms work fine when tested by running them without a button,

    As part of my troubleshooting I tried the button wizard as an experiment to see if it used the same macro commands, which it did.

    HOWEVER I have now added the macro code to a button on the form, and it no longer produces the error. I don't understand why, to be honest, but I am very grateful that you have led me to the solution

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

Similar Threads

  1. Replies: 2
    Last Post: 10-14-2021, 03:33 AM
  2. Replies: 27
    Last Post: 09-10-2020, 05:46 AM
  3. Replies: 2
    Last Post: 08-14-2019, 04:40 PM
  4. Replies: 1
    Last Post: 01-04-2018, 07:39 AM
  5. Access from Office 10 will not work in Office 365
    By Majestic Eagle in forum Access
    Replies: 3
    Last Post: 01-03-2017, 03:49 AM

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
  •  
Other Forums: Microsoft Office Forums