PC Review


Reply
Thread Tools Rate Thread

connect to access using password

 
 
kalle
Guest
Posts: n/a
 
      8th Jun 2009


Hi!

I'm trying to connect to a access db that have a password but with no
luck.

I use this code

Set con = New ADODB.Connection
con.Provider = "Microsoft.ACE.OLEDB.12.0"
con.Open ThisWorkbook.Path & "\file.accdb", "", "password"

con.CursorLocation = adUseClient

What is wrong?

Thanks in advance

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
r
Guest
Posts: n/a
 
      8th Jun 2009
con.Open ThisWorkbook.Path & "\file.accdb", "UserName", "password"
or
con.Open ThisWorkbook.Path & "\file.accdb", , "password"

regards
r

Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/...ternative.html


"kalle" wrote:

>
>
> No password is not the real password.
> It is obviously something else.
>
> The question is why it does not work. How to connect to an access
> database that has a password?
>
> I have the test locally on my computer and on the network but it makes
> no difference.
>
> *** Sent via Developersdex http://www.developersdex.com ***
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: connect to access using password Patrick Molloy Microsoft Excel Programming 1 8th Jun 2009 12:00 PM
Connect to MS Access with Password via VBA =?Utf-8?B?bWF0ZWxvdA==?= Microsoft Excel Programming 2 19th Sep 2006 03:55 PM
connect yo database access with password =?Utf-8?B?15zXmdeQ15XXqC7Xkg==?= Microsoft Access ADP SQL Server 1 2nd Jul 2006 11:59 AM
VB .NET not able to connect to Access 2k db w/Password Bob Microsoft Access Security 0 30th Jun 2004 02:01 PM
Do I Connect to Password Protected Access DB Tony Lin Microsoft ADO .NET 1 29th Jul 2003 10:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 AM.