MS Access DoCmd.Transferdatabase when source has a password

前端 未结 2 1930
傲寒
傲寒 2021-01-21 06:45

I need to import tables from various databases on a monthly basis. Once the tables are imported, the databases are archived and not looked at again.

I have the following

2条回答
  •  猫巷女王i
    2021-01-21 07:16

    You can use SQL and build a SQL statement and .RunSQL that I believe.

    An example SQL would be

    SELECT * into tblIMPORT FROM xyz IN '' '; database=C:\Workspace\Database1.accdb;PWD=test';

    Hope this helps.

提交回复
热议问题