Link to home
Start Free TrialLog in
Avatar of mrong
mrong

asked on

Supply password in Visual Basic Editor?

Hello,

I got the foolowing message while I tried to add a button on a form(Access2002 SP3)

"Microsoft helps protect this VIsual Basic for Application Protect with a password. You must supply the password in the Visual Basic Editor before you can perform this operation."

Anyone knows the reason?

Thanks.
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

whoever wrote the original VBA code, has added Password protection to the Access ( an internal password, in the VBA and forms, not the external Workgroup password on the MDB).  If you want to change the application, then you will need to get that password from the original developer.

That is precisley what the message is telling you.

AW
Avatar of Feyo
Feyo

Someone passworded the code so that others would not modify it.
Sorry. I was writing at the same time as you.
Avatar of mrong

ASKER

well...I am the person create the database, but I don't think I put any password on it. Anyway, is there a way to clear/reset the password?

Thanks.
I got this from MS help:

Important:  If you forget your password, it can't be recovered, and you won't be able to view or edit the VBA code.

Avatar of mrong

ASKER

where can I supply the password?
go to Tools/Project Properties while in VBA and select the protection tab. That is, if you have access to it.

Avatar of mrong

ASKER

It saying "project is unviewable"
Where can I type the password to unlock the project?

Thanks.
As soon as you attempt to access the VBA coding environment, it should prompt you for that password. If it doesn't, something else may be wrong. When exactly do you get the error message above? Do you get it when you try to access the VBA coding environment?
Avatar of mrong

ASKER

I got the following message as soon as I tried to access the VBA coding environment. It didn't prompt for password.

"Microsoft helps protect this VIsual Basic for Application Protect with a password. You must supply the password in the Visual Basic Editor before you can perform this operation."
What version of Access are you using?
Avatar of mrong

ASKER

The database was created by Access 2000. I use Access2000 to open it.
ASKER CERTIFIED SOLUTION
Avatar of Feyo
Feyo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrong

ASKER

ok..I just remembered something. This database is on the server. couple of my co-workers upgrade from Access 2000 to Access 2003. To avoid the security warning message(when open DB remotely), they installed the digital certificate. I think that might be the reason.

THanks.
Avatar of Jeffrey Coachman
You might also want to try one of the many "Passsword Cracker" services available.

Just do a search in Google "Access VBA Password Crack", and see what they have.