comando execute

15/07/2005 - 16:54 por denny Torcates | Informe spam
if (operacion = "Agregar") then
strSql="INSERT INTO T_PROVEEDORES
(DESC_PROV,FECH_REGI,PERS_CONT,TELE_PROV,MAIL_PROV,FAX_PRO
V,DIRE_PROV,OBSE_PROV)VALUES
('"&NombreS&"','"&Fecha&"','"&Contacto&"','"&Telefono&"','
"&mail&"','"&Fax&"','"&Direccion&"','" & Observa&"')"
end if

if (operacion = "Modificar") then
strSql= "UPDATE T_USUARIOS SET
APEL_USUA='"& Apellidos &"',NOMB_USUA ='"& Nombres
&"',LOGI_USUA='"&Login &"',PASS_USUA='"& Password
&"',NIVL_USUA='"& Nivel &"' ,FECH_REGI='"& Fecha &"'
WHERE CODI_USUA='"&trim(Codigo)&"'"
end if


conexion.execute (strSql)
conexion.Close
SET conexion = Nothing



me aparece este mensaje
"
No se estableció ningún texto de comando para el objeto
de comando."

que puede ser este error de verdad es urgente
 

Leer las respuestas

#1 dtorcates
15/07/2005 - 19:33 | Informe spam
conexion es una variable global llamada desde un include
Como declaras conexion?

Saludos,

Matias Iacono
Microsoft MVP ASP/ASP.net - DC3
https://mvp.support.microsoft.com/profiležACEDFE-6C76-


4156-ACE3-BD3E257868B7
"denny Torcates" escribió en el


mensaje
news:075601c5894d$1f43c7b0$

if (operacion = "Agregar") then
strSql="INSERT INTO T_PROVEEDORES



(DESC_PROV,FECH_REGI,PERS_CONT,TELE_PROV,MAIL_PROV,FAX_PRO
V,DIRE_PROV,OBSE_PROV)VALUES



('"&NombreS&"','"&Fecha&"','"&Contacto&"','"&Telefono&"','
"&mail&"','"&Fax&"','"&Direccion&"','" & Observa&"')"
end if

if (operacion = "Modificar") then
strSql= "UPDATE T_USUARIOS SET
APEL_USUA='"& Apellidos &"',NOMB_USUA ='"& Nombres
&"',LOGI_USUA='"&Login &"',PASS_USUA='"& Password
&"',NIVL_USUA='"& Nivel &"' ,FECH_REGI='"& Fecha &"'
WHERE CODI_USUA='"&trim(Codigo)&"'"
end if


conexion.execute (strSql)
conexion.Close
SET conexion = Nothing



me aparece este mensaje
"
No se estableció ningún texto de comando para el objeto
de comando."

que puede ser este error de verdad es urgente


.

Preguntas similares