Forum Moderators: open
The second one uses the Server.Mappath function to resolve the current relative folder to an actual physical path and will connect to an Access database in the same folder as the ASP page.
<%
adoCon.Open "Driver={Microsoft Access Driver (*.mdb)}; Dbq=c:\somepath\databasename.mdb;"
%>
<%
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("databasename.mdb")
%>