FoxPro/Visual FoxPro - No me sale un Insert!!!!

 
Vista:

No me sale un Insert!!!!

Publicado por christian (8 intervenciones) el 24/02/2003 15:21:30
hola! tengo un problema con una clausula aql , un insert , no me ingresa ningun dato a la tabla , y nose porque, le he puesto valores ya referenciados y nada , alguien me pude ayuda???? de antemano gracias... este es el codigo que tengo , las fechas estan en formato fecha ...

set multilocks on
local suceso
local nombre,apellido,rut,fechanc,direccion,telefonos,ciudad,estadicivil,fechaing
local estmed,titulo,especialidad,otrosestudios,trabajo,disponibilidad

WITH THISFORM.pageframe1.page1
nombre= .txtnombre.value
apellido= .txtapellido.value
rut= .txtrut.value
fechanc = .txtfechanc.value
direccion= .txtdireccion.value
telefonos= .txttelefonos.value
ciudad= .txtciudad.value
estadocivil= .txtestadocivil.value
fechaing= .txtfechaing.value
EndWith
With ThisForm.pageframe1.page2
estmed= .txtestmed.value
titulo =.txttitulo.value
especialidad= .txtespecialidad.value
otrosestudios= .txtotrosestudios.value
endwith
with thisform.pageframe1.page3
trabajo= .edit1.value
disponibilidad= .txtdisponibilidad.value
endwith
use Areaeducacion

&&If !Empty(nombre)and !Empty(apellido) And !Empty(rut) And !Empty(fechanc) ;
&&And !Empty(direccion) And !Empty(telefonos) and !Empty(ciudad) And !Empty(fechaing);
&&And !Empty(estadocivil) And !Empty(estmed) And !Empty(titulo) and !Empty(especialidad);
&&And !Empty(otrosestudios) And !Empty(trabajo) And !Empty(disponibilidad);
INSERT INTO Areaeducacion VALU
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:No me sale un Insert!!!!

Publicado por upliftmofopartyplan (265 intervenciones) el 26/02/2003 15:19:48
Hola!
si ese es tu código, la sentencia INSERT está incompleta:

INSERT INTO areaeducacion (<camponombre>,<campoapellido>, <todosloscampos>) values (nombre, apellido, <todaslasvariables>)

asi debe ser la sentencia. debes incluir todos los campos a llenar referenciados con los valores por el orden en que los ingresas.
prueba y cuenta
Uplift
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:No me sale un Insert!!!!

Publicado por christian (1 intervención) el 05/03/2003 16:20:45
me resulto asi... mira que curioso...

INSERT INTO areaeducacion VALUES (.page1.txtrut.value,.page1.txtnombre.value,.page1.txtapellido.value,;
.page1.txtfechanc.value,.page1.txtestadocivil.value,.page1.txtdireccion.value,;
.page1.txttelefonos.value,.page1.txtciudad.value, .page1.txtfechaing.value,;
.page2.txtestmed.value,.page2.txttitulo.value,.page2.txtespecialidad.value,;
.page2.txtotrosestudios.value,.page3.edit1.value ,.page3.txtdisponibilidad.value,;
.page4.txtcargo.value,.page4.txtcapacitacion.value)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar