Solved

VBA stopping security warnings with certificates issue

Posted on 2006-10-20
3
670 Views
Last Modified: 2008-02-01
Hi
Hope someone can help..

I Have an Access Project with Modules and forms. I want to stop the Security warning from appearing when I start the application. I do not want to edit the Security Level so instead I created and signed my own Digital Certificate and added it to the project. However after I signed the project with the Certificate when I save or close the project, I get the following 2 errors.

1.         "Could not read definitions; no read definitions permission for table or query ......

2.         "There was a problem with the digital certificate. The VBA project could not be signed. The signature will be discarded.

Any help would be greatly appreciated.
As I am trying to distribute the project to a client.

Regards
Stephen
0
Comment
Question by:cstephen100
3 Comments
 
LVL 13

Expert Comment

by:newyuppie
ID: 17774129
i think the Digital Certificate does not remove the warning that macros are in the document. it just says that you created it and nobody has tampered with it, which is really no real protection if you think about it. even less if you created the digital certificate for free?

i think the only way to turn that off is to set the security level to Low... maybe somebody can correct me in this one.

for the digital certificate problems, check that you are using a company to create digital certs such as Verisign or something like that, maybe that corrects the problem

hope it helps

NY
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 400 total points
ID: 17778269
Your first error would seem to point to corruption in the database. Make a copy of the db, and then try a Compact/Repair. If that doesn't work, try building a new, blank database and importing all the objects from the old db.

Regarding the macro error: Yes, you can stop this IF you have a digital certificate and it's properly applied.You must digitally sign the VBA project. Here's  a few links that may help:

http://office.microsoft.com/en-us/assistance/HP010397921033.aspx?mode=print
http://office.microsoft.com/en-us/assistance/HP010446121033.aspx?mode=print

You'll notice the first paragraph contains this line:

"In High or Medium security, a file signed by a trusted entity will be opened without any security warnings."

As newyuppie mentions, you would need to purchase a digital certificate from a "trusted entity". I got mine from Comodo (http://www.instantssl.com/code-signing/), costs about 100 bucks a year.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question