Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Conectar Excel 365 con SQLITE

publicado

Hola estoy intentando conectar Excel a SQLITE pero no hay manera.

Mi sistema: Excel 365 y Windows 10- 64 bits

Lo que tengo es lo siguiente:

With cnn

  1. .Provider = "msoledbsql"
  2. .ConnectionString = "DRIVER=" & Driver & ";DataBase=" & Ruta & Fichero '& ";": c_error = True
  3.  
  4. .Open
  5.  
  6. End With

 

Está instalado el driver "SQLite3 ODBC Driver" y la referencia Microsoft ActiveX Data Objects 6.0 Library.

Pero me da el error "invalid connection string attribute"

¿Alguien me puede echar una mano con esto?

Muchas gracias por anticipado.

Featured Replies

publicado
  • Autor
Hace 57 minutos , Marc1961 dijo:

Hola estoy intentando conectar Excel a SQLITE pero no hay manera.

Mi sistema: Excel 365 y Windows 10- 64 bits

Lo que tengo es lo siguiente:

With cnn

  1. .Provider = "msoledbsql"
  2. .ConnectionString = "DRIVER=" & Driver & ";DataBase=" & Ruta & Fichero '& ";": c_error = True
  3.  
  4. .Open
  5.  
  6. End With

 

Está instalado el driver "SQLite3 ODBC Driver" y la referencia Microsoft ActiveX Data Objects 6.0 Library.

Pero me da el error "invalid connection string attribute"

¿Alguien me puede echar una mano con esto?

Muchas gracias por anticipado.

Pongo todo el código:

Sub TestConexión()

Ruta = "C:\"
Fichero = "Caldas.db"
Driver = "SQLite3 ODBC Driver"
fic = "DRIVER=" & "; DataBase=" & Ruta & Fichero

    Set cnn = New ADODB.Connection
    
    With cnn
    
        .Provider = "MSOLEDBSQL"
        .ConnectionString = "DRIVER=" & Driver & ";DataBase=" & Ruta & Fichero & ";"
        c_error = True
        
        .Open
    
    End With

    Debug.Print cnn.State

End Sub

publicado
  • Autor
En 10/2/2022 at 11:51 , Marc1961 dijo:

Hola estoy intentando conectar Excel a SQLITE pero no hay manera.

Mi sistema: Excel 365 y Windows 10- 64 bits

Lo que tengo es lo siguiente:

With cnn

  1. .Provider = "msoledbsql"
  2. .ConnectionString = "DRIVER=" & Driver & ";DataBase=" & Ruta & Fichero '& ";": c_error = True
  3.  
  4. .Open
  5.  
  6. End With

 

Está instalado el driver "SQLite3 ODBC Driver" y la referencia Microsoft ActiveX Data Objects 6.0 Library.

Pero me da el error "invalid connection string attribute"

¿Alguien me puede echar una mano con esto?

Muchas gracias por anticipado.

Pongo todo el código:

Sub TestConexión()

Ruta = "C:\"
Fichero = "Caldas.db"
Driver = "SQLite3 ODBC Driver"
fic = "DRIVER=" & "; DataBase=" & Ruta & Fichero

    Set cnn = New ADODB.Connection
    
    With cnn
    
        .Provider = "MSOLEDBSQL"
        .ConnectionString = "DRIVER=" & Driver & ";DataBase=" & Ruta & Fichero & ";"
        c_error = True
        
        .Open
    
    End With

    Debug.Print cnn.State

End Sub

 

SOLUCIONADO: Escogiendo el DRIVER  sqliteodbc.exe y no el que yo había seleccionado que era sqliteodbc_w64.exe

publicado

Hola, que bueno que lo solucionaste, pero aunque no das el detalle, al parecer tu Office es de 32 bits (ojo, el Office, quedó claro que tu sistema operativo es de 64 bits) y, también al parecer, estabas usando un driver de 64 bits.

Lo que pasa es que, por más que un sistema operativo sea de 64 bits, si el Office es de 32 bits, necesariamente para las conexiones hay que usar los drivers de 32 bits. Saludos.

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.