Error message when you run a macro that calls a VBA function in an Access 2007 database: "Action Failed Error Number: 2950"
On This PageSYMPTOMSWhen you run a macro that calls a Microsoft Visual Basic for Applications (VBA) function in a Microsoft Office Access 2007 database, you receive the following error message: Action Failed Macro Name: MacroName Condition: Condition Macro Name: RunCode Arguments: Arguments Error Number: 2950 CAUSEThis issue occurs if the database is not trusted by Access 2007. By default, Access 2007 opens databases that are not trusted in Disabled mode. In Disabled mode, executable content is disabled. RESOLUTIONIf you trust the author of the Access 2007 database, and if you want to enable the database, use one of the following methods. Method 1: Enable the database for the current sessionWhen you use this method, Access 2007 enables the database until you close the database. To enable the database for the current session, follow these steps:
Method 2: Move the database to a trusted locationTo do this, follow these steps:
MORE INFORMATIONYou can use an AutoExec macro to test whether a database is trusted when you open the database. Additionally, the macro can open a form that displays a customized message to users if the database is not trusted. This message lets users know that the database must be enabled or trusted for the code to run successfully. To create the AutoExec macro and the form, follow these steps:
REFERENCESFor more information, see the Help files in Access 2007. To do this, click Microsoft Office Access Help, type how database objects behave when trusted and untrusted in the Type words to search for box, and then click Search.
| Article Translations
|

Back to the top
