Tema: StacOverflow
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/05/2004, 05:24
Avatar de izar
izar
 
Fecha de Ingreso: enero-2004
Mensajes: 519
Antigüedad: 20 años, 3 meses
Puntos: 1
StacOverflow

If txtNombre.ReadOnly = False Then
If (txtNombre.Text = "") Or (txtApellidos1.Text = "") Or (txtApellidos2.Text = "") Then
MsgBox(STRCAMPOSOBLIGATORIOS, MsgBoxStyle.Exclamation, "Kontuz / Atención")
Abortar = True
Else
Abortar = False
dtpFModif.Text = FormatDateTime(Today, DateFormat.ShortDate)

If Me.BindingContext(DataSet11, "PERSONAS1").Position = Me.BindingContext(DataSet11, "PERSONAS1").Count - 1 Then
Me.BindingContext(DataSet11, "PERSONAS1").Position -= 1
Me.BindingContext(DataSet11, "PERSONAS1").Position += 1
Else
Me.BindingContext(DataSet11, "PERSONAS1").Position += 1
Me.BindingContext(DataSet11, "PERSONAS1").Position -= 1

End If
DAPERSONAS1.Update(DataSet11, "PERSONAS1")
Me.DataSet11.PERSONAS1.AcceptChanges()
End If

End If


Este es el codigo q tengo en el boton "grabar" de un formulario. Si hago llamada a este evento desde lagun otra pestaña que no sea la pestaña principal del mantenimiento, me sale un error de stackOverflow y se sale del programa. por favor.....

Igualmente pasa con el boton añadir al ahcer el addnew

Ayuda por fasvor, estoy deseperadillo........

gracias de antemano