Imports Public Class Public As Integer Dim As New
Imports Public Class Public As Integer Dim As New
Imports Public Class Public As Integer Dim As New
ESTADO DECHIHUAHUA
GRUPO: 6101-I
Práctica No. 4
MATRICULA: 080260036-1
Imports System.Data.OleDb
Public Class Form1
Public fila As Integer = 0
Dim cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|
DataDirectory|\ISMAELSISTEMA.mdb")
Dim dt As New DataTable
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
cn.Open()
dt.Reset()
Dim mostrardatos As String = "select * from USUARIOS"
Dim dataAdapter As New OleDb.OleDbDataAdapter(mostrardatos, cn)
dataAdapter.Fill(dt)
Dim us As Integer = dt.Rows.Count - 1
While (us >= 0)
If usuariotxt.Text = CStr(dt.Rows(us)("ADMIN")) Then
Form2.Show()
Me.Hide()
ElseIf us = 0 Then
MsgBox("Su nombre o contraseña son incorrectos",
MsgBoxStyle.Exclamation, "Mensaje")
End If
us = us - 1
End While
dataAdapter.Dispose()
cn.Close()
End Sub
End Class
Imports System.Data.OleDb
Public Class Form2
Dim cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|
DataDirectory|\ISMAELSISTEMA.mdb")
Dim dt As New DataTable
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form3.Show()
End Sub
Imports System.Data.OleDb
Public Class Form3
Dim cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|
DataDirectory|\ISMAELSISTEMA.mdb")
Dim dt As New DataTable
Private Sub PARTES_DBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
PARTES_DBindingNavigatorSaveItem.Click
Me.Validate()
Me.PARTES_DBindingSource.EndEdit()
Me.PARTES_DTableAdapter.Update(Me.ISMAELSISTEMADataSet.PARTES_D)
End Sub
End Sub
End Class
Imports System.Data.OleDb
Public Class Form5
Dim cn As New
OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|
DataDirectory|\ISMAELSISTEMA.mdb")
Dim dt As New DataTable
Private Sub PARTES_DBindingNavigatorSaveItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
PARTES_DBindingNavigatorSaveItem.Click
Me.Validate()
Me.PARTES_DBindingSource.EndEdit()
Me.PARTES_DTableAdapter.Update(Me.ISMAELSISTEMADataSet.PARTES_D)
End Sub
End Sub
End Class
Imports System.Data.OleDb
End Sub
End Sub
End Class