Professional Documents
Culture Documents
estado de Chihuahua
Practica 20
5101 080260266-4
Lista de Cotejo
INSTRUCCIONES DE APLICACIÓN.
Verifique que se encuentren los componentes señalados abajo y marque con una √ el registro
de cumplimiento correspondiente.
REGISTRO DE
REGISTRO DE
End Select
Botón Siguiente
Private Sub cmdsiguente_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles cmdsiguente.Click
If (fila >= 0 And fila < dt.Rows.Count - 1) Then
fila = fila + 1
actualiza()
Else
MsgBox("Se encontro el ultimo registro")
End If
End Sub
Botón Agregar
Dim dt As New DataTable
Dim cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=G:\Trabajos conalep\5tosem\PSGBD\Programas\fechas
conversion\Fechas.mdb")
Private Sub cmdagregar_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdagregar.Click
cn.Open()
Dim GuardarDatos As String = "insert into fechas(D, M, A)" &
"Values('" & TextBox1.Text & "' ,'" & TextBox2.Text & "' ,'" &
TextBox3.Text & "' )"
Dim dataAdapter As New OleDb.OleDbDataAdapter(GuardarDatos,
cn)
dataAdapter.Fill(dt)
MsgBox("Se agrego el registro correctmente",
MsgBoxStyle.Information, "Mensaje")
dataAdapter.Dispose()
cn.Close()
End Sub
Boton Consultar
Public fila As Integer = 0
fechas
D M A
15 6 1993
13 8 1995
12 12 1900
8 4 1999
18 8 1978
12 5 1993