link table from sqllite

zezo2021

Member
Local time
Today, 20:23
Joined
Mar 25, 2021
Messages
412
try to link the table from sqllite but an error appears near linked

Code:
Private Sub Command0_Click()
Dim connection As New ADODB.connection
Dim rst As New ADODB.Recordset

' Set the connection string
connection.ConnectionString = "DRIVER={SQLite3 ODBC Driver};DATABASE=e:\mydb.db"

' Open the connection
connection.Open

' Create a linked table in the Access database
rst.Open "CREATE LINKED TABLE Client TO [ODBC;DRIVER={SQLite3 ODBC Driver};DATABASE=C:\mydb.db].[Client]", connection

' Close the connection
connection.Close

End Sub
 
What was the error message?
 
did u try linking the table via the EXTERNAL DATA?
(not in code)
 

Attachments

  • Screenshot 2023-10-02 204012.png
    Screenshot 2023-10-02 204012.png
    4.1 KB · Views: 111
CREATE LINKED TABLE
pretty sure that is not valid sql. You are also using ADO whilst access uses DAO.

do you have any video?

I don't have resources link access with SQLite
try experimenting

go to the External Data tab
click on odbc database
click on the link to datasource option
try navigating to the file data source, and select the DSN
or click on the machine datasource and choose your driver

in any event you will have to have installed your sqllite driver
 
pretty sure that is not valid sql. You are also using ADO whilst access uses DAO.


try experimenting

go to the External Data tab
click on odbc database
click on the link to datasource option
try navigating to the file data source, and select the DSN
or click on the machine datasource and choose your driver

in any event you will have to have installed your sqllite driver
 

Attachments

  • error.png
    error.png
    4.3 KB · Views: 108
I've no idea what you were doing when you generated that message, so cannot offer any insight.

After 300+ posts, you will know we need detail to provide assistance. if you can't be bothered to provide that, why do you think we should spend multiple posts guessing?

A simple google search found this link

 
I've no idea what you were doing when you generated that message, so cannot offer any insight.

After 300+ posts, you will know we need detail to provide assistance. if you can't be bothered to provide that, why do you think we should spend multiple posts guessing?

A simple google search found this link


I saw this link before posting my post

not give me any solution
 
the quality of your video is too poor for me to see what you are doing.

Good luck with your app but I don't believe I can help with your quest
 
Not an expert, but around 0:00:12 seconds into your video you may need to "browse" to the backend location.
 

Users who are viewing this thread

Back
Top Bottom