Beruflich Dokumente
Kultur Dokumente
vb)
Imports System.Data.SqlClient
Public Class frmManteClientes
'Declaracion de variables para el manejo de Tablas
Public oConexion As SqlConnection
Public oDataAdapter As SqlDataAdapter
Public oDataSet As DataSet
Public oCommand As SqlCommand
Public StrSql As String
Dim Rpta As Integer
Dim Conta As Integer = 0
Public Operacion As String
Public Sub ConectarBase()
Try
'Crear la Conexion
oConexion = New SqlConnection
oConexion.ConnectionString = "Data Source=(local);Initial
Catalog=bdBancos;User ID=sa;Password=clavesql"
oConexion.Open()
Catch ex As Exception
MessageBox.Show(ex.Message)
End
End Try
oConexion.Close()
End Sub
Next
End Sub
End Sub
Next
grbBuscar.Enabled = Not Estado
End Sub
End Sub
End If
End If
oCommand = New SqlCommand(StrSql, oConexion)
N = oCommand.ExecuteNonQuery()
If N > 0 Then
MsgBox("Registro Grabado", MsgBoxStyle.Information, "Registro Clientes")
EstadoBotones(True)
EstadoTextos(False)
txtBus.Enabled = True
End If
oConexion.Close()
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
xBus = Trim(txtBus.Text)
If Len(xBus) > 0 Then
End If
End Sub