Foros del Web » Programando para Internet » ASP Clásico »

Problemas con Update en tablas

Estas en el tema de Problemas con Update en tablas en el foro de ASP Clásico en Foros del Web. Gente, Estoy necesitando que este script reciba parametros en la instrucción " TBL.Open "CRM" " es decir que la tabla a abrir "CRM" este sea ...
  #1 (permalink)  
Antiguo 26/07/2012, 08:27
 
Fecha de Ingreso: julio-2012
Mensajes: 1
Antigüedad: 11 años, 10 meses
Puntos: 0
Problemas con Update en tablas

Gente,
Estoy necesitando que este script reciba parametros en la instrucción " TBL.Open "CRM" " es decir que la tabla a abrir "CRM" este sea un parametros y que desde el formulario desde un combo box le envie cualquier nombre de tabla a realizar el update. asi no tener varios por cada tabla que quiera actualizar, gracias
Les dejo el escirpt completo




<html>
<head>
<title>INSERT COBRANZAS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<!-- #include file="dbconex.inc" -->

<%
If Request.Form <> "" Then
Dim DB, TBL

TBL.Open "CRM" ,DB, 1, 2
TBL.AddNew
TBL("OK") = Request.Form("OK")
TBL("FAIL") = Request.Form("FAIL")
TBL("SKIPED") = Request.Form("SKIPED")
TBL("PENDING") = Request.Form("PENDING")
TBL("BLOQUED") = Request.Form("BLOQUED")
TBL("FECHA") = Request.Form("FECHA")
TBL.Update
TBL.Close

DB.Close

Set DB = Nothing
Set TBL = Nothing

Response.Write "Se a agregado con exito"
else
%>
<form name="form1" method="post" action="agregarCOR.asp">
<p> OK
<input type="text" name="ok" maxlength="50">
</p>
<p> FAILl
<input type="text" name="fail" maxlength="50">
</p>
<p> SKIPED
<input type="text" name="skiped" maxlength="50">
</p>
<p> PENDING
<input type="text" name="PENDING" maxlength="50">
</p>
<p> BLOQUED
<input type="text" name="BLOQUED" maxlength="50">
</p>
<p> FECHA
<input type="text" name="FECHA" maxlength="50">
</p>



<p>
<input type="submit" name="Submit" value="Enviar">
</p>
</form>
<%
End If
%>
</body>
</html>

Etiquetas: tablas, update
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:45.