How do you stop this window popping up for tables being imported via DoCmd.TransferSpreadsheet
?
I'm importing quite a few tables, so having to click "open" on this pop-up for each one is annoying.
I've tried DoCmd.SetWarnings False
but that doesn't seem to work.
I know that it may also be possible to set the folders that contain the files being imported to trusted locations, but unfortunately I don't have permissions on our network to do that at the moment (I also think that would only affect the settings of my version of Access rather than the Access file I'm creating and distributing).
The open file security warming has NOTHING to do with Access.
The open file security warning has NOTHING to do with trusted locations.
The open file security warning has NOTHING to do with you having some security certificate.
When you download a file (or perhaps copy from a USB drive), then windows 7 will toss up a security prompt. This occurs for ANY type of file from Word to PDF to whatever.
If you just have one file, then the common solution is to right click on the file and then properties.
You then choose UNBLOCK.
The dialog looks like this:
So you can open up that folder, and select all (ctrl-A) and then again choose the un-block.
You can also consider a registry edit, but then again that likely not a good security setting.
You need to create a Digital Certificate that determines that the source is trusted. I wrote a doc for my company, I'll copy/paste it here but it's going to lose the screenshots I provided.
The CSC, in Step 1, is our internal help desk. In our case, it requires specific priviledges that they need to assign in order to be able to do this.
The issue I was having was due to our network security policy. Our IT tech has amended the policy so that I don't get these pop-ups from files I try to import in to Access from a particular folder.
He has given the following instructions should anyone else have the same issue in Access on a network, though I suspect this could be done from other Office programs too: