Link to home
Create AccountLog in
Avatar of ca1358
ca1358

asked on

Get pass a password-Excel to Access

I this code in excel, How do I get pass the "password".

At this point, click the command button and it open Access and bypass the password and go directly to a form.

'opens access
   
    Range("Q23").Select
   
   
    ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="Volume.mdb", _
        TextToDisplay:="Volume.mdb"
   
    Range("Q23").Select
   
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
    Set App = GetObject("\\Dtcnas-ilsp002\mandatory\Analysts - Working Files\Carol\Demo\Volume.mdb;pwd=OPPs;")
App.Application.DoCmd.RunMacro "Macro2CloseSwitchboard"
App.Application.DoCmd.openform "Form"


 Any help would greatly be appreciated!



ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
listen
Avatar of ca1358
ca1358

ASKER

still trying to figure this out!!
Avatar of ca1358

ASKER

Got this work, thank you all for your help!!