22.11.2016 Views

microsoft-office-professional-2010-step-by-step

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

758 Chapter 25 Explore an Access <strong>2010</strong> Database<br />

Enabling Macros and Other Database Content<br />

Some databases contain Microsoft Visual Basic for Applications (VBA) macros that<br />

can run code on your computer. In most cases, the code is there to perform a<br />

database-related task, but hackers can also use macros to spread a virus to your<br />

computer.<br />

When you open a database that is not stored in a trusted location or signed <strong>by</strong> a<br />

trusted publisher, Access displays a security warning below the ribbon.<br />

The security warning.<br />

While the security warning is displayed, the macros in the database are disabled.<br />

You can enable macros in three ways:<br />

● By enabling the macros in the database for use in the current database session.<br />

● By adding the database publisher to the list of trusted publishers. This option is<br />

available only if the publisher’s digital signature is attached to the database.<br />

Access will then automatically enable macro content in any database that is<br />

also signed <strong>by</strong> that publisher.<br />

● By placing the database in a trusted location. Access automatically enables<br />

macro content in any database saved in that location. The trusted locations<br />

you specify within Access are not also trusted <strong>by</strong> other Office programs.<br />

To enable macros for the current database session only:<br />

● In the Security Warning area, click Enable Content.<br />

To add the publisher of a digitally signed database to the trusted publishers list:<br />

1. In the Security Warning area, click Some Active Content Has Been Disabled.<br />

Click For More Details.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!