I try to connect from my ASP page to an access database which is on a server on network.
My code is hereQ
set cn=server.CreateObject("ADODB.connection")
set rs=server.CreateObject("ADODB.recordset")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=//Info/db_pepdym/pepdym.mdb"
rs.Open "SELECT * FROM tblCalls", cn, 1, 1
If not rs.EOF then
rs.movefirst
Do while not rs.EOF
Response.Write "<b>" & rs("Id") & "</b>" &" "
Response.Write "<b>" & rs("Title") & "</b>" & "<br>"
rs.movenext
Loop
end if
cn.Close
But it doesnt work. I think the The problem is that the database is on the network. What can i do?
My code is hereQ
set cn=server.CreateObject("ADODB.connection")
set rs=server.CreateObject("ADODB.recordset")
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=//Info/db_pepdym/pepdym.mdb"
rs.Open "SELECT * FROM tblCalls", cn, 1, 1
If not rs.EOF then
rs.movefirst
Do while not rs.EOF
Response.Write "<b>" & rs("Id") & "</b>" &" "
Response.Write "<b>" & rs("Title") & "</b>" & "<br>"
rs.movenext
Loop
end if
cn.Close
But it doesnt work. I think the The problem is that the database is on the network. What can i do?