IT Новости из мира ПК
7 просмотров
Рейтинг статьи
1 звезда2 звезды3 звезды4 звезды5 звезд

Access ошибка 2950

«Action Failed Error Number: 2950» error when running a macro that calls a VBA function in an Access 2007 database

Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.

Original KB number: 931407

If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business site.


When 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


This 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.


If 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 session

When 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:

  1. On the Message Bar, click Options.
  2. In the Microsoft Office Security Options dialog box, click Enable this content, and then click OK.

You must repeat these steps every time that you open the database.

Method 2: Move the database to a trusted location

To do this, follow these steps:

Determine trusted locations to which you can move the database. To do this, follow these steps:

Click the Microsoft Office Button, and then click Access Options.

Click Trust Center, and then click Trust Center Settings under Microsoft Office Access Trust Center.

Click Trusted Locations, and then use one of the following procedures:

  • Note the paths of the trusted locations that are listed.
  • Add a new trusted location. To do this, click Add new location, and then specify the path of the location that you want to add.

Move the Access 2007 database to the trusted location that you want.

More Information

You 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:

Create a new form in Design view.

Add a text box or a label to the form, and then type the information that you want to display to the user.

Save and then close the form.

Create a macro, and then name the macro AutoExec.

Show the Conditions column.

Type the following line in the Conditions column:

In the Actions column, click OpenForm.

In the Form Name box under Action Arguments, click the form that you created in step 1.

Save and then close the macro.

When the database opens, the AutoExec macro starts and then tests the IsTrusted condition. If the database is not trusted by Access 2007, the macro opens the form that you specified in the «OpenForm» action of the macro.


For 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.

Fixes To Resolve Access 2950 – Macro Not Working Error

Frequently getting Action Failed Access 2950 error code in your Access database? Looking for some instant fixes to resolve such kind of issues? Well if yes, then this post may seems workful to you. As it contain complete solution to resolve MS Access Action Failed Error Number: 2950.

The most vulnerable point of MS Access is where most error occurs in Macros. Well macros is basically for introducing a level of automation within Access but scripts that make the execution of macros can have the chance to get corrupt easily. Thus it leads to unexpected macro error: Action Failed Error Number: 2950”.

Let’s find out the main causes behind this error and the easy the fixes to resolve this MS Access Database 2950 Error.

Читать еще:  Access runtime 2020 скачать

About MS Access Error 2950:

Basically, this kind of error is mainly faced by the users who are actually launching the database that is not trusted and mostly in the MS Access application.

A MS Access error 2950 is the numeric data format of the error code that is developed by Windows as a standard error layout, in addition to device driver manufacturers and compatible programs of Microsoft Windows.

This type of computer code is usually employed by the commercial to identify the causes of error. The Microsoft Access error 2950 message provides you practical brief description as well as a numeric number. In many situations, it might have additional parameters in the format of Microsoft Access 2950 error . The additional numerical code of the error message is the address of the memory sections that are loaded with the guidelines at the time of the error.

What Causes MS Access Database 2950 Error code?

When visual basic is required for the application by Macros (VBA) then it raises the requirement tag to call the VBA using some function. So, in that case you get the error:

Action Failed Error Number 2950

This particular issue usually occurs when the database is not trusted by the Access application. By default, the MS Access opens up the untrusted database in disabled mode. As, the executable content is disabled in this mode.

Other possible causes:

The Access 2016 error 2950 message may occur because of the failure of Microsoft Windows System. Missing system files are generally a significant threat to the life of your computer. There can be so many circumstances that may cause a system file error such as incomplete file erasure, incomplete installation setup, and bad erasure of computer hardware or software.

These errors also occurred when a computer or laptop is infected by adware/spyware or PC virus or by an improper shut down of computer. Any of these activities may end up in the corruption or removal of data files of Windows system and that broken system files will offer you a incorrect or absent data files and linked data that is necessary for the accurate operation of the computer.

Manual Fixes To Resolve Microsoft Access 2950 Error

If you are getting Access Error code 2950 and want to fix this error then you can follow the below mentioned methods.

Method 1: Advance Computer User Solution

  • Start up the computer or laptop and sign on as admin.
  • After then, click on the Start Button and then click Programs-> Accessories-> System Tool-> System Restore.
  • In the next screen, click on “Restore my PC to a prior period” and click “Next”.
  • Here you have to choose the latest restore date from “click a restore date” list and after then click on Next.
  • In the verification window, click the Next button.
  • When the restoration is complete, restart your computer or laptop.

Method 2: Enabling The Database

  • Open the MS Access 2007, navigate to the message bar and click options.

  • The Microsoft office security option is displayed.
  • Select the enable this content options and then click the OK button.

Apart from enabling the database, you can also try moving the database to any other trusted location. So, that no any other situation arises like this.

Method 3: Moving The Database To Any Other Trusted Location

You can check out these steps to perform database transition.

  • In the MS Access software, open the MS office button wizard.
  • Click Access Options.

  • Microsoft office access trust center > Trust Center Settings > Go to Trust Center

  • Click the trusted location field and then set the trusted location from the list.

  • In order to add another trusted location click add new location.

Likewise, you can shift the database to a trusted location which can be helpful in diminishing the MS Access database errors.

Method 4: Configure The AutoExec Macro

In such unexpected situations, you can also configure the expert AutoExec macro which warns you about database untrusted state when you open any database. To configure AutoExec, perform the following steps:

  1. In the MS Access application, create a new form.
  2. Add the label and the text box object in the form.
  3. Save the newly-created form and close it.
Читать еще:  Access база заказов

4. Create and then name a new macro as AutoExec.

5. Display the conditions field columns.

6. Specify the CurrentProjectIsTrusted= False in conditions.

7. Go to Actions column, and then click the OpenForm option.

8. Action Arguments.>Go to Form Name

9. Select the newly-created form.

10. Save the macro.

By applying these entire solutions one can be aware of the root cause to avoid the occurrence of action failed error number 2950. But as most of the users are engaged in saving the database, the situation leads to the corruption of MDB OR ACCDB files which results in crucial data loss.

How to Fix MS Access Database Error 2950?

Microsoft Access is a Database Management System that combines the capabilities of Microsoft Relational Database Jet Engine with a convenient graphical user interface. Owing to the ease of use and security features it brings to the table; MS Access has rapidly captured the market to become one of the most widely used database systems. However, errors can occur even in the most secure of user defences, and MS Access is no exception to this.

Microsoft Access Database Error 2950

MS Access is not error-free. The most vulnerable point of MS Access where most errors occur is Macros. While Macros introduce a level of automation within Access, scripts that make the execution of Macros possible can get corrupt easily thus leading to unexpected errors. One of the most commonly occurring Macro errors is, “Action Failed Error Number: 2950”. Let us discover the causes behind this error and a few easy solutions to fix it.

Primary Reason Behind Access Database Error 2950

Error 2950 is received when a macro calling a VBA (Visual Basic for Applications) function is run. The primary reason behind the occurrence of this error is that the database from which the macro in run is not trusted by Access. By default, Access opens databases that are not trusted in the Disabled mode. In the Disabled mode, executable content is disabled.

Common Fixes to Resolve Microsoft Access error 2950

Listed below are the common fixes to the error. Apply any of the following

  1. Enable the Database for Current Session

This method will enable the database only for the current session. The database will be disabled as soon as you initiate a Close Database command. Follow the steps below:

  • In the Access message bar, click on Options
  • This will open MS Office Security Options dialog box. Click on Enable this content
  • Click OK

Note: These steps should be repeated each time you open the database

  1. Move the Database to a Trusted Location

For this, you must first find out the trusted locations on your system to which you can move the database. To do so, perform the following steps:

  • Click on MS Office button ->Access Options ->Trust Center ->Trust Center Settings
  • Go to Trusted Locations and then do any of the following:
    • Note the paths of the trusted locations listed
    • Add a new trusted location. For this, click on Add new location and then specify the path of the location that you want to add

Once you have the trusted locations list, move the Access database to any one of them.

Recommended Solution

In case you’re unable to perform any of the above-mentioned fixes or the problem still persists, then there may be an issue with your database files. Here, Stellar Repair for Access may serve the purpose. This advanced software not only has the capability to fix the MS Access error 2950 but other Access errors too as well as severe cases of the corrupt database. It can repair corrupt MDB and ACCDB database files to restore tables, queries, indexes, and relations. Moreover, the product supports Linked tables and calculated data type and can retrieve password-protected forms and modules.

Final Thoughts

Every problem has a solution, especially if you have the right kind of help. Though MS Access database related issues are quite easy to resolve at the user’s end, however, at times, the solutions can be tricky or too technical. In such scenarios, leveraging the secure and reliable Access repair software, Stellar Repair for Access may be purposeful.

Читать еще:  Почему не работает анимация в powerpoint

About The Author

Jyoti Prakash

Problem solver and Data recovery specialist. Usually share informative articles on data recovery, database corruption and ways to recover lost data.

Ошибка Access: «Запрос поврежден»

Последнее обновление: 9 декабря 2019 г.

При попытке выполнить запрос на обновление может отображаться ошибка: «Запрос «имя запроса» поврежден».

Это происходит для запроса на обновление, который:

Обновляет одну таблицу (т. е. он обновляет таблицу, а не результаты запроса на выборку или присоединение

Указывает предложение WHERE (т. е. содержит записи в строке «Условия» в конструкторе запросов)

Эта проблема влияет на все поддерживаемые сборки Access.

Эта проблема возникла 12 ноября 2019 г. при применении следующих обновлений для сборок MSI:

Office 2010: описание обновления для системы безопасности для Office 2010: 12 ноября 2019 г. (KB4484127)
Office 2013: описание обновления для системы безопасности для Office 2013: 12 ноября 2019 г. (KB4484119)
Office 2016: описание обновления для системы безопасности для Office 2016: 12 ноября 2019 г. (KB4484113)
Office 2016: 12 ноября 2019 г., обновление для Office 2016 (KB3085368)

В таблице ниже указаны даты и номера сборок для самого раннего доступного обновления, но для сборок MSI указанное исправление не является обязательным, и оно должно применяться вручную. Существует обновление системы безопасности от 10 декабря для сборок MSI, предоставляемое в службе WSUS и устанавливаемое автоматически, которое исправляет эту проблему:

2010: KB4484193 — сборка 14.0.7243.5000
2013: KB4484186 — сборка 15.0.5197.1000
2016: KB4484180 — сборка 16.0.4939.1000

Эта проблема будет устранена для всех версий:

ПРИМЕЧАНИЕ. Если при попытке применить исправление появляется сообщение «В системе не установлены продукты, к которым можно было бы применить этот пакет», причиной может быть использование установки Office с технологией «нажми и работай» (C2R), а не установки MSI. В этом случае воспользуйтесь соответствующими инструкциями для версии C2R после выхода исправления.

Официальная ссылка на исправление проблемы

Access 2010 MSI, распространяемый пакет ядра СУБД Access 2010

27 ноября 2019 г.

Access 2010 C2R

10 декабря 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access 2013 MSI

27 ноября 2019 г.

Access 2013 C2R

10 декабря 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access 2016 MSI, распространяемый пакет ядра СУБД Access 2016

18 ноября 2019 г.

Access 2019 с корпоративной лицензией

10 декабря 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access для Office 365, канал Monthly Channel/Access 2016 C2R/Access 2019 (версия 1910)

18 ноября 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access для Office 365, канал Semi-Annual
(версия 1902)

22 ноября 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access для Office 365, канал Semi-Annual Extended
(версия 1808)

22 ноября 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access для Office 365, канал Semi-Annual Targeted (версия 1908)

22 ноября 2019 г.

Выберите «Файл»/»Учетная запись»
«Параметры обновления»/»Обновить»
в приложении Office

Access для Office 365 (версия Microsoft Store)

18 ноября 2019 г.

Откройте магазин Microsoft Store
Нажмите на . в верхнем правом углу
Выберите «Загрузки и обновления».

Если вы столкнулись с этой проблемой до выхода исправления, в качестве временного решения рекомендуется обновить запрос, чтобы он обновил результаты другого запроса, а не обновлять непосредственно таблицу.

Например, если у вас есть запрос, аналогичный следующему:

UPDATE Таблица1 SET Таблица1.Поле1 = «x» WHERE ([Таблица1].[Поле2]=1);

Вы можете создать новый запрос (Запрос1):

SELECT * from Таблица1;

И обновить исходный запрос:

UPDATE Запрос1 SET Запрос1.Поле1 = «x» WHERE ([Запрос1].[Поле2]=1);

Заменив все указания Таблицы1 на Запрос1

Это позволит получить такие же результаты и избежать ошибки.

При необходимости также можно удалить обновление.

Для сборок MSI см. следующую статью:

Для Office 365 см. следующую статью:

Дополнительные ресурсы

Общение с экспертами

Обращайтесь к экспертам, обсуждайте новости, обновления и рекомендации для Excel, а также читайте наш блог.

Задавайте вопросы сотрудникам службы поддержки, MVP, инженерам и другим пользователям Excel и находите решения.

Предложение новых функций

Мы будем рады вашим отзывам и предложениям. Вам наверняка есть, что сказать. Поделитесь с нами своими мыслями.

Ссылка на основную публикацию