Results 1 to 6 of 6
  1. #1
    dargo72 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    53

    Access 2010 Macro not Functional in 2007

    Hello,



    I created a database with a macro in Access 2010. The macro runs when you click a button. When someone clicks the button in Access 2007, the record is saved, but the macro does not automatically close the form and the database as it should. The following error message is received.

    Click image for larger version. 

Name:	error message.png 
Views:	13 
Size:	22.2 KB 
ID:	14146


    What should I do so that users (not using 2010) can utilize this database function.

    Thank you,

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    It seems as though you are trying to call a macro that needs a control to be active. Is there a control on the form that is not available for editing/saving at the time the macro is being called?

  3. #3
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    The basic answer is this - Access is not backwards compatible. You have to code it on a machine at the lowest level that you need it to run - in this case, on an Access 2007 machine. Sorry.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Dal Jeanis View Post
    The basic answer is this - Access is not backwards compatible. You have to code it on a machine at the lowest level that you need it to run - in this case, on an Access 2007 machine. Sorry.
    There it is in a nutshell. For some reason I wasn't comprehending. Must be suffering from dyslexia.

  5. #5
    dargo72 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2012
    Posts
    53
    Quote Originally Posted by ItsMe View Post
    There it is in a nutshell. For some reason I wasn't comprehending. Must be suffering from dyslexia.
    Thank you for the replies. I am going to work on it using someone else's computer that has only 2007. I was just hoping that there was a trick to use to ensure that I could create macros with arguments/methods that would be acceptable to 2007.......

  6. #6
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    You don't necessarily have to code on 2007. Alternative is, decompile, recompile and test the result on 2007.

    The only other alternative is to limit yourself to .mdb, which even if coded on 2010 should be backwards compatible to 2003, therefore 2007.

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

Similar Threads

  1. Replies: 5
    Last Post: 01-07-2016, 12:49 PM
  2. Replies: 1
    Last Post: 06-29-2013, 01:49 AM
  3. Replies: 0
    Last Post: 07-31-2012, 12:25 PM
  4. Replies: 0
    Last Post: 04-24-2012, 08:26 AM
  5. 2007 to 2010 macro won't work
    By lmnnt in forum Programming
    Replies: 6
    Last Post: 08-10-2011, 01:55 PM

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