Get past security warning in ms access using scheduled tasks

Posted on 2009-04-29
Last Modified: 2013-11-27
I have a scheduled task that will open a ms access database and run a macro.  I'm running into a problem when the database is open, I get the security warning prompt.  Is there anyway to get around this?
Question by:nfstrong
    LVL 3

    Accepted Solution

    Digital Certificate for VBA Projects
    make cert

    in VBA editor
    Tools -> Digital Signature -> sign as -> chose -> your cert
    LVL 3

    Expert Comment

    chceck box on: Always trust file from this publisher....
    and pres ok
    LVL 84

    Assisted Solution

    by:Scott McDaniel (Microsoft Access MVP - EE MVE )
    What version of Access? If this is 2007, you need to add the database to a Trusted Location.

    Also: if this is a 2003 or earlier, then you'll not only need to use a digital certificate (a self-certificate may or may not work, by the way), and you'll also need to insure that the machine is running Jet SP 8.0 and that sandbox mode has been enabled.

    Author Comment

    I'm running 2003.  I created a cert and checked the trust publisher box.  I have a split database where these updates are done on the backend, so I've added the cert to the backend.  My question is if I make an update to the VBA do I have to reinstall the cert on the machine running the updates or will it still work?

    Author Comment

    I just tested it and it worked!  Thanks for the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now