Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do make it a connection of Access Database from Excel?
Hello;
I am creating a connection of Acess Database from a VBA code in Excel, but I have a problem. The data base has protected with password; I know the key word, but I don't know how to write it in VBA. That do I make? Greetings. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do make it a connection of Access Database from Excel?
"Dennis" wrote in message ... : Hello; : I am creating a connection of Acess Database from a VBA code in Excel, but I : have a problem. The data base has protected with password; I know the key : word, but I don't know how to write it in VBA. That do I make? : Here is some code I used in the past Set cnnDB = New ADODB.Connection With cnnDB .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeRead .Properties("Jet OLEDB:Database Password") = "password" .Open "\\MyDatabase" End With Paul D |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do make it a connection of Access Database from Excel?
Thanks PaulD, it's wonderful
¡¡¡Worked it perfectly!!! Grettings. Dennis. "PaulD" wrote: "Dennis" wrote in message ... : Hello; : I am creating a connection of Acess Database from a VBA code in Excel, but I : have a problem. The data base has protected with password; I know the key : word, but I don't know how to write it in VBA. That do I make? : Here is some code I used in the past Set cnnDB = New ADODB.Connection With cnnDB .Provider = "Microsoft.Jet.OLEDB.4.0" .Mode = adModeRead .Properties("Jet OLEDB:Database Password") = "password" .Open "\\MyDatabase" End With Paul D |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel connection to ODBC database | Excel Discussion (Misc queries) | |||
Serial Letter- Connection with Excel database | Excel Discussion (Misc queries) | |||
Make an Access Database out of Excel spreadsheet | New Users to Excel | |||
Database Connection from Excel | Excel Programming | |||
MS Access Database Connection problem in Excel XP 2002 | Excel Programming |