Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to Access

Status
Not open for further replies.

lomano

Programmer
Nov 15, 2000
18
CA
I am having a minor problem connecting to Access through an ASP page.. I think this is because i have a password on my access database, that seems to be the indication of the error.. How do i get around this?

<%
'Set variables for opening database connection
Dim connString
Dim MyConn

'Create connection to database using Access Driver (Doesn't display memo fields)
Set MyConn = Server.CreateObject(&quot;ADODB.Connection&quot;)
connString = &quot;DBQ=&quot; & Server.MapPath(&quot;db3.mdb&quot;)
MyConn.Open &quot;DRIVER={Microsoft Access Driver (*.mdb)}; &quot; & connString
%>

 
There should be other parameters you can put on the connection string, like UID and Password.

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top