Microsoft VBScript runtime error '800a01a8' - Object required
Posted on 2006-05-30
I have a puzzling question. i got the error Microsoft VBScript runtime error '800a01a8' - Object required on page 2 but when I click back to the Page1 and then click Submit again, the page works!
what I'm trying to say is that it doesn't work the first time but is able to update on the second try (after I click the back Button and then the Submit buttonin IE).
This is the code on Page 2.
<!--#include file="../Connections/OnlineRegistration.asp" -->
<% Dim con, sql_update
sql_update = "Update Pendaftaran Set Nama = '"& Session("NamaValue") &"', NIP = '"& Session("NIPValue") &"' Where PendaftaranID = " & Session("PendaftaranID") & " "
Set con = Server.CreateObject("ADODB.Connection")
con.Open MM_OnlineRegistration_STRING --> Error line
Set con = nothing
Response.Redirect ("DaftarPerserta.asp?KursusID=" & Session ("KursusID"))
I'm sure it works cos it's able to update on the second try (but not the 1st time)