Ver Mensaje Individual
  #16 (permalink)  
Antiguo 06/07/2010, 11:57
Avatar de JoseAlejandro_Realza
JoseAlejandro_Realza
 
Fecha de Ingreso: agosto-2008
Ubicación: Maracay - Venezuela
Mensajes: 192
Antigüedad: 15 años, 9 meses
Puntos: 2
Respuesta: Listar Tabla VisualB + Access

Ya lo modifique segun comprendi, no me genera error, mas no carga los datos dentro del DataGrid

Código vb:
Ver original
  1. Dim Conectar As New Connection, Query As New Recordset, Sql As String
  2. Conectar.CursorLocation = adUseClient
  3. Sql = "SELECT * FROM Categorias ORDER BY Categoria_Nombre"
  4. Conectar.Open "Provider = Microsoft.jet.oledb.4.0; data Source = C:\Users\Admin\Documents\Database_ARE[MJ].mdb"
  5. Query.Open Sql, Conectar, adOpenDynamic, adLockOptimistic
  6.  
  7.  Set Me.DataGrid1.DataSource = Query
  8.  
  9.     Query.Close
  10.     Set Query = Nothing
  11.     Conectar.Close
  12.     Set Conectar = Nothing
__________________
Tu Guía Empresarial http://www.empresarial.org.ve Soluciones Empresariales

Atte: José Alejandro Realza