Hi i am currently writing some script for an intranet page. There were two templetes included as the header and footer but since i have removed them i have got this error message:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'conn' /leave/index.asp, line 25
The code below is taken from the section where the problem is...is possible could anyone help me with this??
failmsg = "You have been denied access. Please ensure you are typing your username and password correctly."
end if
rsvalidate.close
Set rsvalidate = nothing
end if
sqlSystemYear = "SELECT LeaveSystemYear.Year FROM LeaveSystemYear WHERE (((LeaveSystemYear.SystemID)='leave'));" set rsSystemYear = Conn.Execute(sqlSystemYear)
Systemyear = rsSystemYear("Year")
rsSystemYear.Close
set rsSystemYear = Nothing