Hola,
como puedo hacer para no registrar datos que ya esta registrados en visual basic 2005 con server 2000.
tengo esto :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'*** Auto Generar Codigo ***
Dim Cod_X$, Tmp$
Mostrar("Select * from matricula where idalumno='" & TxtCod.Text & "'", "E1")
If Dst.Tables("E1").Rows.Count > 1 Then
'If Dst.Tables("E1").Rows(0).Item("fecha") = DateString Then
MsgBox("El Alumno ya fue matriculado y no puede volver a ser matriculado")
Dst.Tables("E1").Clear() : Exit Sub
'End If
End If
Dst.Tables("E1").Clear()
Mostrar("select * from matricula order by idmatricula", "CM1")
Configuración: Windows XP Internet Explorer 6.0