saludos
file = "comments " & newpath & ".xls"
path = "D:\Cognos\SIE\Import Comments\Companys\"
path = path & newpath & "\"
path = path & file
Set ConexionBD = Server.CreateObject("ADODB.Connection")C onexionBD.Open "DRIVER={Microsoft Excel Driver (*.xls)};DBQ=" & Path
Set rsVac = Server.CreateObject("ADODB.Recordset")

linea1=""
linea2=""
linea1 = request.form("msg")
linea2= request.form("msg2")
rsVac.Open "Select * From Comments where Reportname = '"&report&"' " , ConexionBD,3,3
'rsvac.movefirst
'rsvac("Comments") = linea1
'rsvac.update
'rsvac.movenext
'rsvac("comments") = linea2
'rsvac.update
rsVAc.open "UPDATE Comments SET Comments = '"&linea1&"', WHERE reportname = '"&report&"' and Linea = 1"
rsVAc.open "UPDATE Comments SET Comments = '"&linea2&"', WHERE reportname = '"&report&"' and Linea = 2"
response.redirect("bravo")
' rsvac.close
'Set rsVac = Nothing
'ConexionBD.Close
'Set ConexionBD = Nothing
end if
end if



