0

I have an application I'm supporting that manages instances of MS Access 2010. I've noticed that when it opens Access databases that have been downloaded, they open in Disabled Mode. This prevents the user from doing things like executing update queries, displaying the message:

The action or event has been blocked by Disabled Mode.

I found this solution for turning it off through the UI, but I need to be able to accomplish this programmatically. Is there any way to turn off Disabled Mode using .NET instead of relying on user interaction?

Also worth noting, the domain where the files are coming from is included in ZoneMap/Domains registry entries, so the source should be considered a trusted location.

Community
  • 1
  • 1
HotN
  • 4,216
  • 3
  • 40
  • 51
  • Are you saving the files to a trusted location? – David-W-Fenton Aug 05 '11 at 21:33
  • This turned out to be the solution I was able to come up with. I have my application modify the registry to add the location of the files being accessed to the trusted locations list. This way, it requires no user interaction to prevent Disabled Mode from kicking in. – HotN Aug 10 '11 at 15:53

1 Answers1

0

I do not have the reference handy, but if memory serves that is supposed to be a security feature. There is, by design, no way to programmatically turn off that mode.

What you can do is have it open a window by default that tells the user how to turn the mode off.

TimothyAWiseman
  • 14,385
  • 12
  • 40
  • 47
  • Not the answer I was hoping for, but that's kind of what I expected to hear. Thanks. – HotN Aug 05 '11 at 15:06