Access 2007 won’t run macro’s / VBA code

Written by admin on June 23rd, 2009

Microsoft introduced a new feature in Access 2007 which tells access to only run certain commands if the database is “trusted”.

Many people first meet this when they have converted a database froma previous version, then are surprised when the converted database does not run as expected.

Here is a quick guide on how to get your database trusted by Access.

  1. Open the database holding the shift key down
  2. Click on the “Office button” (top left hand corner) and select “Access Options” (bottom right of menu)
  3. Office button -> Access OptionsOffice button -> Access Options
  4. Select “Trust Center” from the left hand menu
  5. Access Options Menu

    Access Options Menu

  6. Click “Trust Center Settings” (Right middle of window)
  7. select_trust_centre_settings1

    Select "Trust Center Settings"

  8. Select “Trusted Locations” from the “Trust Center” menu
  9. Trust center menu

    Trust center menu

  10. Select “Add new location” (Bottom of window)
  11. Ad new trusted location

    Ad new trusted location

  12. And add the location (folder, directory) of the database that you are trying to open.
  13. Close and re-open the database.
Twitter It!

1 Comments so far ↓

  1. R. Willis says:

    Security is not the only reason that Access 2007 does not run VBA code. I have no idea what the other reasons are, but have a macro attached to a click event, and for some reason Access does not run the macro when clicked. It will do it if I add a new record. I have not found any bug report which covers this.

Leave a Comment