Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: cannot update


Message #1 by abel09@u... on Thu, 5 Dec 2002 17:09:31
I'm trying to track the users that access a page in my application and I 
am using two subroutines for that. However update in the first subroutine 
will not execute. Could anyone please help me? Here is the code: 

<SCRIPT LANGUAGE=vbscript>
Sub Window_OnLoad()
<% 
If rsItem("lastretriever")=" " OR rsItem("lastretriever")="NULL" then%>
MsgBox("The record is not in use. Are you sure that you want to process?")
<%
rsItem("lastretriever")= Session("FirstName")&" "&Session("LastName")
rsItem.Update
Else%>
MsgBox"Record is in use"
<% End If
%>
End Sub
</script>
 <SCRIPT LANGUAGE=vbscript>
Sub Window_OnUnLoad()
<%
rsItem("lastretriever")= " "
rsItem.Update
%>
End Sub
</script>



  Return to Index