Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys to "Password Required" window

Status
Not open for further replies.

dlcksc

Programmer
Feb 18, 2008
4
US
Access 2000:
I'm attempting to close Main.mde from Open.mde. Main.mde is set to compact on close. The "Password Required" window pops up because Main.mde is password-protected. When the code below is executed from Open.mde(to close Main.mde), the "Password Required" window pops up.
Code:
AccInstance.CommandBars("Menu Bar"). _
            Controls("Tools"). _
            Controls("Database utilities"). _
            Controls("Compact and repair database..."). _
            accDoDefaultAction

Is there a way to input the password and invoke the "enter" key using VBA?
 
See the Solution I posted for...

Open & CompactOnClose password-protected public db w/o passwrd prompts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top