Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Iniciar Sesión PDF
Iniciar Sesión PDF
7. Agregar declaraciones
a. Encima de [Module …] poner Imports System.Data.OleDb
b. Entre [Module …] y [End Module] agregar:
Public conexion As OleDbConnection
Public comando As OleDbCommand
Public almacen As DataSet
Public adaptar As OleDbDataAdapter
Public sql As String
Public resultado As Integer
Public registro As DataRow
Public cnn As String = "Provider=Microsoft.Jet.Oledb.4.0; data source=[DireccionDB]"
Public locatedata As String
Public contador As Integer
Public dataindent As Integer
Public Sub conectar()
locatedata = "Provider=Microsoft.Jet.Oledb.4.0; data source=[DireccionDB]"
conexion = New OleDbConnection(locatedata)
If conexion.State = ConnectionState.Closed Then
conexion = New OleDbConnection(locatedata)
End If
End Sub