Share via

Security Warning on Empty Database

Anonymous
2014-02-14T22:32:56+00:00

I started a blank database .accdb type.

I have one table with three fields in it.

ID - AutoNumber

FName - Text

LName - Text

When I close and re-open the database I get a Message Bar indicating the database has MacroVBA in it. Are you kidding me?

Message Bar Settings says: "Show the Message Bar in all applications when active content, such as ActiveX controls and macros, has been blocked."

ActiveX Settings says: "Prompt me before enabling all controls with minimal restrictions" - and has a check mark in Safe Mode

If my database is just tables and queries, I don't understand why I am getting the message bar. Or is this a reported bug that I am just now finding about?

TIA

Dawn Bleuel

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-02-15T04:54:45+00:00

Put your database in a Trusted Location, see...

http://www.access-diva.com/d4.html

Side note...  The security warnings are for the entire database not just VBA and macros.

Was this answer helpful?

0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-02-19T22:20:57+00:00

    Daniel

    Thanks so much for writing that script. It looks like something I can add to my original script for installing/updating my front ends.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-02-18T01:40:39+00:00

    I personally use a vbscript routine to launch my databases, part of this routine first ensure that a trusted location exists for the db by reading/writing to the appropriate registry keys.

    The basic principle can be found: http://www.devhut.net/2010/06/23/vbscript-createset-trusted-location-using-vbscript/

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2014-02-17T20:12:26+00:00

    Dawn

    I guess it's to be expected. 2003 started us off with warnings if there were macros or code and the user could accept or reject their use. Gradually, MS tightened up security which I can understand. After all, VBA or even macros can be used to delete files, plant viruses, etc. One client I worked for just sent someone around to every computer and made the suggested settings I gave you.

    Another way to go is to run a .reg file to create the trusted location in the user's registry. For Windows XP it would look like this:

    [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\MyLocation]

    AllowSubFolders (REG_DWORD) = 1

    Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo1"

    Was this answer helpful?

    0 comments No comments