Hi,
I am using a PWS on a NT Workstation with Access2K db. The following asp codes essentially worked but if I reloaded the same page immediately after it's already been display, the following error appeared:
Provider error '80004005'
Unspecified error
/chp2/chp6/Display_Products.asp, line 4
If I waited for a few minutes then reload the page, the records would be properly displayed. Is there somthing that I overlooked?
Thanks
Mike
================================
<%
' Open Database Connection
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
' Open Recordset
Set RS = Server.CreateObject( "ADODB.Recordset" )
RS.ActiveConnection = Con
RS.Open "SELECT * FROM Products"
' Loop through Recordset
WHILE NOT RS.EOF
Response.Write RS( "product_name" ) & "<br>"
RS.MoveNext
WEND
RS.close
Set RS = Nothing
Con.Close
Set Con = Nothing
%>
I am using a PWS on a NT Workstation with Access2K db. The following asp codes essentially worked but if I reloaded the same page immediately after it's already been display, the following error appeared:
Provider error '80004005'
Unspecified error
/chp2/chp6/Display_Products.asp, line 4
If I waited for a few minutes then reload the page, the records would be properly displayed. Is there somthing that I overlooked?
Thanks
Mike
================================
<%
' Open Database Connection
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
' Open Recordset
Set RS = Server.CreateObject( "ADODB.Recordset" )
RS.ActiveConnection = Con
RS.Open "SELECT * FROM Products"
' Loop through Recordset
WHILE NOT RS.EOF
Response.Write RS( "product_name" ) & "<br>"
RS.MoveNext
WEND
RS.close
Set RS = Nothing
Con.Close
Set Con = Nothing
%>