ACCESO A BASE DE DATOS ACCESS
Publicado por rafa (7 intervenciones) el 20/04/2009 16:46:27
Buenas tardes, haber si alguna alma caritativa me ayuda, estoy empezando con basic asi que mis dudas son muy basicas( incluso ridiculas para alguien que sepa mas) tengo bastante codigo escrito, es el primer programa que hago asi que lo he ido haciendo a pedazos asi que al compilar se me ha venido todo abajo, bueno al grano
QUIERO ACCEDER A LA BASE DE DATOS Y SIEMPRE ME DA FALLOS, ELCODIGO ES ESTE:
Option Explicit
Dim db As Database
Dim TBL1 As Recordset
Dim INV As String
Dim con As Connection
Public Sub ALLA()
db = CurrentDb() ' el fallo siempre es aqui,,,,," EL USO DE LA PROPÌEDAD NO ES VALIDO"
INV = "Select * FROM INVENTARIO"
Set TBL1 = BDD.OpenRecordset(INV)
If TBL1.EOF Then
MsgBox ("NO SE ABRE LA BASE DE DATOS")
Else
MsgBox (" SE ABRE LA BASE DE DATOS")
End Sub
POR FAVOR DECIRME COMO ES, SI ESTA TODO MAL O LO QUE SEA
Muchas gracias
QUIERO ACCEDER A LA BASE DE DATOS Y SIEMPRE ME DA FALLOS, ELCODIGO ES ESTE:
Option Explicit
Dim db As Database
Dim TBL1 As Recordset
Dim INV As String
Dim con As Connection
Public Sub ALLA()
db = CurrentDb() ' el fallo siempre es aqui,,,,," EL USO DE LA PROPÌEDAD NO ES VALIDO"
INV = "Select * FROM INVENTARIO"
Set TBL1 = BDD.OpenRecordset(INV)
If TBL1.EOF Then
MsgBox ("NO SE ABRE LA BASE DE DATOS")
Else
MsgBox (" SE ABRE LA BASE DE DATOS")
End Sub
POR FAVOR DECIRME COMO ES, SI ESTA TODO MAL O LO QUE SEA
Muchas gracias
Valora esta pregunta


0