ADODC Y DATACOMBO

Cuestiones y dudas acerca de lenguajes de programación diversos.

Moderador: Moderadores

Avatar de Usuario
GAVAFRA

ADODC Y DATACOMBO

Mensaje por GAVAFRA » Mié May 04, 2005 9:24 pm

HOLA A TODOS
NECESITO AYUDA POR FAVOR

TENGO UN ADODC ENLAZADO A UNA TABLA DE ACCESS Y UN DATACOMBO LIGADO AL ADODC
LA TABLA DE ACCESS TIENE LOS CAMPOS
NUMERO ANIMALES
1 PERRO
2 GATO
3 LEON

CUANDO SELECCIONO POR EJEMPLO GATO EN EL DATACOMBO ME CAMBIA EL ORDEN EN LA BD Y ME BORRA PERRO PERO ME DUPLICA GATO.YA TRATE DE BLOQUEAR EL ADODC A QUE SEA READ ONLY Y ENTONCES NO ME DEJA HACER NADA ME MANDA UN ERROR "OPERATION WAS CANCELLED". EN EL EVENTO CLICK DEL DATACOMBO TENGO EL CODIGO SIGUIENTE:

If DataCombo3.DataChanged Then
Adodc3.Recordset.Bookmark = DataCombo3.SelectedItem
Text51.Text = Adodc3.Recordset.Fields("NUMERO")
If Text51.Text = 9 Then
Text52.Text = InputBox("ESCRIBE EL MOTIVO DEL ANIMAL")
Else
Text52.Text = ""
End If
End If

AYUDENME POR FAVOR ES MUY URGENTE

GRACIAS POR TODO
:wink:

Avatar de Usuario
Samael
Novat@
Mensajes: 4
Registrado: Vie May 13, 2005 3:28 pm
Ubicación: Mexico

Mensaje por Samael » Vie May 13, 2005 3:59 pm

lo mas probable es que tengas enlazado tambien las propiedades Datasource y Datafield, si es asi quitales el enlace y deja nadamas las propiedades Rowsource y Listfield.
Suerte...

Responder