Link Table via DAO

后端 未结 2 1464
后悔当初
后悔当初 2021-01-21 15:14

So I am essentially trying to link a table via DAO from an ACCDB that is password-encrypted into the DB I am working in. The premise of what I am doing is that the data is sort

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 16:04

    Tables and queries share the same name space in MS Access. Chances are you have a query with the same name as the table you are trying to link.

    Also, Environ("username") is easily spoofed. Consider using the API function GetUserName instead. Of course, if you need real security you'll want to upgrade your back-end to SQL Server (Express) or some other RDBMS.

提交回复
热议问题