Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi. I use this code to connect to my database at work. Set con = New ADODB.Connection con.Provider = "Microsoft.Jet.OLEDB.4.0" con.Open ThisWorkbook.Path & "\my.mdb" Now I want to protect the database with a password. But it does't work. Can anyone help me? Thanks in advance *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim cs as string
Set con = New ADODB.Connection cs = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ ThisWorkbook.Path & "\mydb.mdb;" & _ "Jet OLEDB:Database Password=YourPasswordGoesHere;" con.Open cs http://www.connectionstrings.com/access Tim "kalle" wrote in message ... Hi. I use this code to connect to my database at work. Set con = New ADODB.Connection con.Provider = "Microsoft.Jet.OLEDB.4.0" con.Open ThisWorkbook.Path & "\my.mdb" Now I want to protect the database with a password. But it does't work. Can anyone help me? Thanks in advance *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for the reply! It works fine. Thought I tried this before but i must have done something wrong then. If someone have time to help me i have one more question. I have my db-file on a network and i want to put my database in a folder there noone else but me has writing rights. Of course I want other users to be able ot connect to my database, but how do i do that? Is it possible at all? I have heard somthing about a mdw-file but how do I create such file? Thanka in advance Kalle *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
connect to access using password | Excel Programming | |||
Password Access to certain sheets | Excel Worksheet Functions | |||
Connect to MS Access with Password via VBA | Excel Programming | |||
Add Password Using Access | Excel Programming | |||
access password | Excel Programming |