Provide VBA Password Programmatically

J

Jake

I'm trying to automate the updating of my frontends, and
have run into a bit of a snag - any time I attempt to
import a form, I receive an error stating that the VBA
project has been password protected and I need to provide
the password.

Both files (the source and the updating file) have
passwords on their projects. I'm assuming I need to use
Application.CurrentProject.OpenConnection(), but I'm not
entirely sure what the BaseConnectionString and UserID
would be.

Help, please????

Thanks!
Jake
 
P

Pepito

Jake said:
I'm trying to automate the updating of my frontends, and
have run into a bit of a snag - any time I attempt to
import a form, I receive an error stating that the VBA
project has been password protected and I need to provide
the password.

Both files (the source and the updating file) have
passwords on their projects. I'm assuming I need to use
Application.CurrentProject.OpenConnection(), but I'm not
entirely sure what the BaseConnectionString and UserID
would be.

Help, please????

Thanks!
Jake

take a look at this :
http://support.microsoft.com/defaul...port/kb/articles/q147/8/16.asp&NoWebContent=1
 
J

Jake

Pepito,

Thank you for your response, but I don't think I was
entirely clear in my request. The database is not
actually secured - only the VBA project has a password.
For my automation I delete the old object and import the
new object from another database, however the forms have
modules behind them, and the modules are protected with
passwords to the import fails. What I need is a way to
pass the VBA password to the update and updating databases
so that the object is imported.

Any help would be greatly appreciated!

Jake
 
P

Pepito

Ok now I see what you want to do.
But I don't know how to do this.
I hope you'll find the solution ;-)

Pepito
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top