How to use SQLite database from MS Access?

亡梦爱人 提交于 2020-01-23 05:48:06

问题


I would like to use an SQLite database from Microsoft Access (access from- or transfer the contents to Microsoft Access).

  • How can this be done using VBA?

This is for a client who can not install extra software:

  • Does a library exist in VBA to use SQLite databases?

回答1:


If you can use the sqlite3.exe command line tool, then have VBA spawn that and dump the data to a csv file. Then Access can read both local data and the CSV file and copy appropriately.




回答2:


Does a standard library exist in VBA to used sqlite database?

No. Access and VBA do not have any native capability to connect to SQLite data sources.

You would have to install additional software to allow Access to use SQLite.




回答3:


There are a number of solutions available which a simple Google search would reveal. Here is one: http://www.freevbcode.com/ShowCode.asp?ID=6893



来源:https://stackoverflow.com/questions/2513121/how-to-use-sqlite-database-from-ms-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!