error (800040e7)
Publicado por jorge (3 intervenciones) el 05/06/2008 19:01:05
hola a todos
tengo un pequeño mas interesante problema vb 6 error que dice: no coinsiden los tipos de datos en la expresion de criterios.
y este es el codigo
Select Case ACCION
Case EDITAR_REGISTRO
cnn.Execute "UPDATE GuiasEscort Set Nombre = '" & Text1(1) & _
"', ApellidoP = '" & Text1(2) & _
"', ApellidoM = '" & Text1(3) & _
"', puesto = '" & Combo1.Text & _
"', direccion = '" & Text1(4) & _
"', TelPart = '" & MaskEdBox1(0) & _
"', TelCell = '" & MaskEdBox1(1) & _
"', FechaIng = '" & MaskEdBox1(2) & _
"', VenCredencial = '" & MaskEdBox1(3) & _
"', Nacimiento = '" & MaskEdBox1(4) & _
"', Identificacion = '" & Text1(5) & _
"', Email = '" & Text1(6) & _
"', Observaciones = '" & Text1(7) & _
"', Radio = '" & Check1(0).Value & _
"', Cargador = '" & Check1(1).Value & _
"', PilaEx = '" & Check1(2).Value & _
"', Contador = '" & Check1(3).Value & _
"', Termometro = '" & Check1(4).Value & _
"', Silvato = '" & Check1(5).Value & _
"', Carpeta = '" & Check1(6).Value & _
"', Sombrero = '" & Check1(7).Value & _
"', Uniforme = '" & Check1(8).Value & _
"' Where Clave = " & IdRegistro
Case AGREGAR_REGISTRO
cnn.Execute "INSERT INTO GuiasEscort (Nombre,ApellidoP,ApellidoM,puesto,direccion,TelPart,TelCell,FechaIng,VenCredencial,Nacimiento,Identificacion,Email, Observaciones, Radio, Cargador, PilaEx, Contador, Termometro, Silvato, Carpeta, Sombrero, Uniforme,Clave) VALUES('" & _
Text1(1) & "','" & _
Text1(2) & "','" & _
Text1(3) & "','" & _
Combo1.Text & "','" & _
Text1(4) & "','" & _
MaskEdBox1(0) & "','" & _
MaskEdBox1(1) & "','" & _
MaskEdBox1(2) & "','" & _
MaskEdBox1(3) & "','" & _
MaskEdBox1(4) & "','" & _
Text1(5) & "','" & _
Text1(6) & "','" & _
Text1(7) & "','" & _
Check1(0).Value & "','" & _
Check1(1).Value & "','" & _
Check1(2).Value & "','" & _
Check1(3).Value & "','" & _
Check1(4).Value & "','" & _
Check1(5).Value & "','" & _
Check1(6).Value & "','" & _
Check1(7).Value & "','" & _
Check1(8).Value & "','" & _
Text1(0) & "')"
End Select
tengo un pequeño mas interesante problema vb 6 error que dice: no coinsiden los tipos de datos en la expresion de criterios.
y este es el codigo
Select Case ACCION
Case EDITAR_REGISTRO
cnn.Execute "UPDATE GuiasEscort Set Nombre = '" & Text1(1) & _
"', ApellidoP = '" & Text1(2) & _
"', ApellidoM = '" & Text1(3) & _
"', puesto = '" & Combo1.Text & _
"', direccion = '" & Text1(4) & _
"', TelPart = '" & MaskEdBox1(0) & _
"', TelCell = '" & MaskEdBox1(1) & _
"', FechaIng = '" & MaskEdBox1(2) & _
"', VenCredencial = '" & MaskEdBox1(3) & _
"', Nacimiento = '" & MaskEdBox1(4) & _
"', Identificacion = '" & Text1(5) & _
"', Email = '" & Text1(6) & _
"', Observaciones = '" & Text1(7) & _
"', Radio = '" & Check1(0).Value & _
"', Cargador = '" & Check1(1).Value & _
"', PilaEx = '" & Check1(2).Value & _
"', Contador = '" & Check1(3).Value & _
"', Termometro = '" & Check1(4).Value & _
"', Silvato = '" & Check1(5).Value & _
"', Carpeta = '" & Check1(6).Value & _
"', Sombrero = '" & Check1(7).Value & _
"', Uniforme = '" & Check1(8).Value & _
"' Where Clave = " & IdRegistro
Case AGREGAR_REGISTRO
cnn.Execute "INSERT INTO GuiasEscort (Nombre,ApellidoP,ApellidoM,puesto,direccion,TelPart,TelCell,FechaIng,VenCredencial,Nacimiento,Identificacion,Email, Observaciones, Radio, Cargador, PilaEx, Contador, Termometro, Silvato, Carpeta, Sombrero, Uniforme,Clave) VALUES('" & _
Text1(1) & "','" & _
Text1(2) & "','" & _
Text1(3) & "','" & _
Combo1.Text & "','" & _
Text1(4) & "','" & _
MaskEdBox1(0) & "','" & _
MaskEdBox1(1) & "','" & _
MaskEdBox1(2) & "','" & _
MaskEdBox1(3) & "','" & _
MaskEdBox1(4) & "','" & _
Text1(5) & "','" & _
Text1(6) & "','" & _
Text1(7) & "','" & _
Check1(0).Value & "','" & _
Check1(1).Value & "','" & _
Check1(2).Value & "','" & _
Check1(3).Value & "','" & _
Check1(4).Value & "','" & _
Check1(5).Value & "','" & _
Check1(6).Value & "','" & _
Check1(7).Value & "','" & _
Check1(8).Value & "','" & _
Text1(0) & "')"
End Select
Valora esta pregunta


0