me sale mensaje se infrige la unicidad del indice
Publicado por colilas (14 intervenciones) el 28/11/2013 18:48:08
hola necesito guardar los datos en una tabla, el rato de ingresar o guardar los mismo me sale este mensaje "se infrige la unicidad del indice" alguien q me pueda ayudar con esto, donde esta mi error y todo lo demás, cabe decir q soy nuevo en esto, de paso agrego mi código de guardar para que chequen si esta bien o no, muchas gracias
SELECT datpacientes
SET ORDER to HIST && NUMHISTORIA
GO bott
&&genera una nueva historia clinica
thisform.text1.Value=numhistoria+1
APPEND BLANK
Replace numhistoria WITH thisform.text1.Value
replace cedula WITH thisform.text2.Value
replace nombres WITH thisform.text3.Value
replace apellidos WITH thisform.text4.Value
replace direccion WITH thisform.text5.Value
replace telefono WITH thisform.text6.Value
replace estadocivil WITH thisform.text7.Value
replace fechanacimiento WITH thisform.text8.Value
replace sexo WITH thisform.text9.Value
replace edad WITH thisform.text10.Value
replace gruposanguineo WITH thisform.text11.Value
replace celular WITH thisform.text12.Value
replace ocupacion WITH thisform.text13.Value
MESSAGEBOX("DATOS GUARDADOS", "AVISO")
***limpiar los texbox
thisform.text2.value="" &&cedula
thisform.text3.value="" && nombres
thisform.text4.value="" && apellidos
thisform.text5.value="" && direccion
thisform.text6.value="" && telefono
thisform.text7.value="" && estado civil
thisform.text8.value="" && fecha de nacimiento
thisform.text9.value="" && sexo
thisform.text10.value="" && edad
thisform.text11.value="" && grupo sanguineo
thisform.text12.value="" && celular
thisform.text13.value="" && ocupación
y de paso no me graba nada en la tabla, alguien q me puede ayudar muchas gracias desde ya
SELECT datpacientes
SET ORDER to HIST && NUMHISTORIA
GO bott
&&genera una nueva historia clinica
thisform.text1.Value=numhistoria+1
APPEND BLANK
Replace numhistoria WITH thisform.text1.Value
replace cedula WITH thisform.text2.Value
replace nombres WITH thisform.text3.Value
replace apellidos WITH thisform.text4.Value
replace direccion WITH thisform.text5.Value
replace telefono WITH thisform.text6.Value
replace estadocivil WITH thisform.text7.Value
replace fechanacimiento WITH thisform.text8.Value
replace sexo WITH thisform.text9.Value
replace edad WITH thisform.text10.Value
replace gruposanguineo WITH thisform.text11.Value
replace celular WITH thisform.text12.Value
replace ocupacion WITH thisform.text13.Value
MESSAGEBOX("DATOS GUARDADOS", "AVISO")
***limpiar los texbox
thisform.text2.value="" &&cedula
thisform.text3.value="" && nombres
thisform.text4.value="" && apellidos
thisform.text5.value="" && direccion
thisform.text6.value="" && telefono
thisform.text7.value="" && estado civil
thisform.text8.value="" && fecha de nacimiento
thisform.text9.value="" && sexo
thisform.text10.value="" && edad
thisform.text11.value="" && grupo sanguineo
thisform.text12.value="" && celular
thisform.text13.value="" && ocupación
y de paso no me graba nada en la tabla, alguien q me puede ayudar muchas gracias desde ya
Valora esta pregunta
0