You could replace all the variables with text so as to see weather your problem comes from empty values from the script or from sql.
You can comment the actual ones and try something like this instead.
$Recordset.Fields("compID").Value = "Test"
_________________________
Life is fine.