Log in

View Full Version : Solved: Automatically cancel a password prompt



Hexmath
10-06-2009, 12:22 PM
Version: Access 2003

Background: I wrote a VBA program in Access 2003 that opens Access databases and retrieves the format versions and stores them in a table.

Problem: When I run the program I have to babysit it because it will open an Access database that is password protected and the password prompt will appear and the program will stop until I press cancel.

What I need: code to automatically press cancel on the password prompt.

Code I use to open the databases:

oApp.OpenCurrentDatabase RSLT :help

Hexmath
10-08-2009, 01:09 PM
Solved.

geekgirlau
10-11-2009, 08:52 PM
Can you tell us what you did to resolve this issue? It could be of use to someone else in the future!

Hexmath
10-12-2009, 06:34 AM
I changed the Wait argument to false. Thus the command will execute after the database opens. :kiss