![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/08/2011, 09:27
|
![Avatar de galletica12](http://static.forosdelweb.com/customavatars/avatar410880_1.gif) | | | Fecha de Ingreso: mayo-2011 Ubicación: Tekax, Yucatán
Mensajes: 213
Antigüedad: 13 años, 9 meses Puntos: 8 | |
Respuesta: VB.NET Problemas conexión Con clases prueba con esta:
Código:
Public Sub New()
InitializeComponent()
Dim cadena_conexion As String
cadena_conexion = String.Format("Provider=Microsoft.jet.OLEDB.4.0;
Data Source=" + My.Application.Info.DirectoryPath + "\usuarios.mdb")
Try
conexion = New OleDb.OleDbConnection(cadena_conexion)
conexion.Open()
Catch ex As OleDb.OleDbException
MessageBox.Show("No se ha podido conectar al servidor "
+ ex.Message)
End Try
End Sub
|