Skip to content

Est. 2011ยทMicrosoft Partner 7033487ยทDelivery under 3 minยทSupport 7 days a week

Your vault is empty.

Free Fix 2950

Access Error 2950 Action Failed: Macros Blocked Because the File Is Not Trusted

10 min read Updated October 4, 2026 Outlook & Office Applications

Fix it now

Your macro is fine. Access is refusing to run actions because it does not trust the file, and the two reasons for that are different: the database is not in a trusted location, or it carries the Mark of the Web because it came from outside the machine. Clearing the mark is the step people miss.

  1. Close Access. Right-click the database file in Explorer, choose Properties, and if an Unblock checkbox is offered on the General tab, tick it and click OK. That removes the Mark of the Web on your local device.
  2. Reopen the database. If a security bar appears under the ribbon, click Enable Content – but treat that as a test rather than a fix, because it lasts for that session only.
  3. For a lasting fix, add the folder holding the database as a Trusted Location. Microsoft states that a file opened from one has the Mark of the Web check ignored and opens with macros enabled.
  4. If the database lives on a share, allow trusted locations on the network before you add the UNC path, and add the path in UNC form rather than through a drive letter.
  5. Close and reopen the database. The security bar should not appear, and the macro should run through to its last action.
  6. Where more than a handful of people are involved, have the trusted location deployed by policy rather than configured on each workstation.

Trust a specific folder you control and that ordinary users cannot write to. Never trust a downloads folder, a profile root or a whole drive – a trusted location applies to everything placed in it, now and in future.

If the macro runs and no security bar appears, you are done. The next section explains the two blocks, which one you are hitting, and what to do when neither is the answer.

Why it happens

When Access opens a database it does not trust, it loads the objects but refuses to run anything that could act on the system or on data. The macro stops at the first such action, and the dialog names that action and its arguments – which is why the message looks like a problem with one step rather than a decision about the whole file. Nothing in the macro needs changing. The trust decision has not been made.

There are two blocks, not one, and they behave differently. The older one is disabled mode, which is what the yellow security bar is about: you can grant trust for that session with Enable Content, permanently by putting the file in a trusted location, or to the file itself by trusting the publisher who signed it. The newer one is the Mark of the Web block. Microsoft blocks macros by default in files that came from the internet across seven applications – Access, Excel, PowerPoint, Project, Publisher, Visio and Word, on Windows – and that block does not offer you a convenient button.

The practical consequence is the thing worth remembering: a database that arrived by email or download can sit in a perfectly good trusted location and still have its macros blocked, because the mark is on the file rather than in the folder. Clearing the mark with the Unblock checkbox is the step that resolves it, and no amount of trusted-location configuration substitutes for it. Microsoft’s other documented routes out are to save the file into a trusted location, or to sign the macro and trust the publisher.

The database is not in a trusted location

You have this one if A security bar appears on open, and clicking Enable Content makes the macro work for that session.

  1. Add the containing folder as a Trusted Location in Access’s Trust Center settings.
  2. For a network path, allow trusted locations on the network first, then add the UNC path.
  3. Where several users are involved, deploy the trusted location through Group Policy rather than visiting workstations.
  4. Reopen and confirm the security bar has gone.

The file carries the Mark of the Web

You have this one if It was emailed, downloaded or copied from another organisation, and macros stay blocked even from a trusted location.

  1. Close Access, right-click the file, open Properties and tick Unblock on the General tab.
  2. For several files, pipe Get-ChildItem into Unblock-File in PowerShell.
  3. Copy the file to its permanent home before unblocking, because copying it afterwards can reapply the mark.
  4. Where the file is distributed to people you do not control, sign it and have them trust the publisher instead.

The action is genuinely unavailable in that context

You have this one if 2046 naming a specific command, and the same macro works from a different form or a different view.

  1. Read what the macro is trying to do. Many commands are only valid when a particular object type has focus.
  2. Add the step that gives the right object focus before the command runs.
  3. Replace a generic command action with the specific action for the operation, which is less sensitive to context.
  4. Test the step on its own with Single Step in the macro designer.

Permissions, or an event that cancelled the action

You have this one if 3033 for one user and not another, or 2501 after opening a report, with no security bar in sight.

  1. Check NTFS permissions on the folder, not just the file: users need Modify on the folder because the lock file is created beside the database.
  2. Confirm the database is not marked read-only, and check the back-end folder too in a split design.
  3. For 2501, check the report’s No Data event and any form Open or Load event that sets Cancel.
  4. For 2467, find the reference to a form or control that is no longer open and test for it before using it.

Full reference

The three ways trust is granted

Route Scope When to use it
Enable Content on the security bar This file, this session A one-off, or to confirm trust is the problem at all
Trusted Location Everything in that folder, permanently A database that lives in a folder you control
Trusted publisher on a signed file That file, wherever it is A database distributed to people whose workstations you do not manage

Where the block is set centrally

The policy that produces the harder block is named Block macros from running in Office files from the Internet, and for Access it sits under User Configuration, Policies, Administrative Templates, Microsoft Access 2016, Application Settings, Security, Trust Center. The related policy is named VBA Macro Notification Settings. Those two names are worth taking to whoever manages your policy, because asking about “macro security” in the abstract gets you nowhere and asking about a named setting gets you an answer.

Distributing a database to people you do not manage

  • Sign the VBA project with a code-signing certificate and have recipients trust the publisher once.
  • Tell recipients how to unblock the file, because the mark is applied at their end, by their download.
  • Do not tell them to enable all macros. It applies to every database they ever open, including the next one that arrives by email.
  • Ship a short instruction with the file. Most of the support load on this is people who were never told the Unblock checkbox exists.

What none of these numbers are

Microsoft publishes no error-number reference for Access, so 2950, 2046, 3033, 2501 and 2467 have no vendor-defined meanings to quote, and this article’s codes table says so. Describe what the application was doing when it stopped rather than quoting a number, especially to a third party: the number will not mean anything to them either.

There is a setting that enables all macros in every database you open. Do not use it. It applies to the one that arrives by email tomorrow just as much as to the one you wrote, and a trusted folder achieves the same result for the files you actually care about.

Every code this article covers

Code What it points at Source
2950 A macro action was refused because the database is running with those actions disabled – it is not trusted not published by the vendor
2046 The command the macro invoked is not available in the current context not published by the vendor
3033 The account does not have the permission the operation requires not published by the vendor
2501 The action was cancelled, often by an event or by a report with no data not published by the vendor
2467 An expression refers to an object that is closed or no longer exists not published by the vendor

Confirm the fix worked

  1. Close and reopen the database and confirm no security bar appears.
  2. Run the macro that failed and confirm it completes through to its last action.
  3. Check the file’s properties and confirm the Unblock checkbox is no longer offered.
  4. Check the Trusted Locations list and confirm the folder is there in the form you intended, UNC rather than a drive letter for a share.
  5. Have a second user open the same file and run the same macro, because trusted locations are per user by default.

Questions people ask about this

Do I need to buy a certificate or any software?

Not for a database used inside one organisation. This costs nothing: a trusted location and the Unblock checkbox cover it. A code-signing certificate is worth buying when you distribute a database to people outside your control, where configuring a trusted location on their machines is not an option.

Can I just turn macro security off?

There is a setting that enables all macros and you should not use it. It applies to every database you open from then on, including the one that arrives by email tomorrow. A trusted folder gives you the same result for the files you care about and none of the exposure.

Why does it work on my machine but not for the users?

Trusted locations are per-user settings by default, so your machine has the folder trusted and theirs do not. Deploy the trusted location by policy and everybody gets it at once.

The security bar does not appear at all, and macros still do not run.

That is the Mark of the Web block rather than ordinary disabled mode. Check the file’s properties for the Unblock checkbox, and ask whether the policy named Block macros from running in Office files from the Internet is applied to your group.

Does this affect Access only?

No. Microsoft blocks macros from the internet by default in Access, Excel, PowerPoint, Project, Publisher, Visio and Word on Windows. The same Unblock checkbox and the same trusted-location behaviour apply across all seven.

Related error codes

Was this article helpful?

Your feedback helps us improve our documentation.

Related articles

Free Fix Excel VBA Error 1004 Application-Defined or Object-Defined Error: Ranges and Sheets Free Fix OneNote Sync Errors 0xE0000007 and 0xE4020045: Notebook Will Not Sync to the Cloud Free Fix Office has detected a problem with this file: Protected View and File Block Rules Free Fix Office Error Code 0x426-0x0: Apps Will Not Start After a Click-to-Run Fault
โ† Back to Knowledge Base