Excel ADODB VBA error msg 'Not a Valid Password'
I am trying to open a Connection to Password protected AccessDB, through Excel VBA. I am using the following connection string conn.Provider = "Microsoft.ACE.OLEDB.12.0" conn.ConnectionString = "Data Source=dbPath; Jet OLEDB:Database Password=pwd;" where dbPath is the path of accdb/mdb file and pwd is the password to the dbfile. The password is absolutely correct but I am always getting the error "Not a Valid Password". Could someone please guide me in this?? -Sri. Additional Info: I am using office 2010 and saved this database as mdb(2003) file(I tried saving this file with accdb extn also).