Establish connnection to Access database using ASP

froggy

Registered User.
Local time
Today, 14:47
Joined
Sep 15, 2006
Messages
13
Hi,

I am currently developing a web application which will need to connect to a password protected Access database. Password which i set is "haha".
Below is the code which I had set for the connection part but it is returning me error saying that is is an invalid password. Is there anything which might have missed out?

dim strCnn
dim Cnn

'Establish a connection to the database
set cnn = server.createobject ("ADODB.Connection")
strCnn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & Server.MapPath("LockTest.mdb") & ";Uid=;Pwd=haha;Mode=3;"
Cnn.open strCnn

Thank you.

Cheers,
froggy
 

Users who are viewing this thread

Back
Top Bottom