It is hard to tell exactly what you are after but, assuming your web server is based on IIS, it sounds like you may need to create a System Data Source (DSN) and connect to it programmatically.
1) Use the OSBC manager to create a System Data Source connection to your Access database. System DSNs are better on a web server as they are not dependant on who the logged on user is.
2) Have a look at the code below which uses Microsoft's ActiveX Data Objects (ADO) to connect to a DSN called Projects and display the 'TaskID' field for every record in a table called 'Tasks'
Hope this helps
Mark
<%
Dim adoCN, adoRS
' Create an ADO Connection object instance
Set adoCN = CreateObject("ADODB.Connection") ' Create an ADO Recordset object instance
Set adoRS = CreateObject("ADODB.Recordset")
' Open a connection to the database
adoCN.Open "Projects" ', UserName, Password
' Create a redordset containing the entire Tasks table
adoRS.Open "SELECT * FROM Tasks", adoCN
' If the record set is not empty parse it outputting TaskID field to a web page
If Not adoRS.BOF And Not adoRS.EOF Then
Do While Not adoRS.EOF
Response.Write (adoRS.Fields("TaskID") & "
")
adoRS.MoveNext
Loop
End If
' Clean up after we are done
adoRS.Close
adoCN.Close
Set adoRS = Nothing
Set adoCN = Nothing
%>