Questo codice restitusce l'errore in oggetto sulla linea indicata, come mai?:

codice:
	iDBLoc = CInt(Request("iDBLoc"))
	iTtlNumItems = CInt(Request("iTtlNumItems"))
	
	if (iTtlNumItems = 0) then
		Set rsObj = Server.CreateObject("ADODB.Recordset")
		sSqlTemp = "SELECT COUNT(*) FROM GestioneTbl"
		rsObj.Open sSqlTemp, conn, 3, 3
		If Not(rsObj.EOF) Then
			iTtlNumItems = rsObj(0)
		End If
		rsObj.Close
		Set rsObj = Nothing
	end if

	iTtlTemp = iTtlNumItems / iNumPerPage <----- riga errore-------<	

	iDBLocTemp = iDBLoc / iNumPerPage		
	If (sQuerystring <> "") Then
		sURLBeg = "<a href = """ & sURL & "?" & sQuerystring & "&iTtlNumItems=" & iTtlNumItems & "&iDBLoc="
	Else
		sURLBeg = "<a href = """ & sURL & "?iTtlNumItems=" & iTtlNumItems & "&iDBLoc="
	End If