Problem Description: Sometimes need in two or three database tables, through the relevant keywords, query to obtain the required recordset, with a general SQL query statement is not achievable, through access to the cross-Library query function.
Solution: For example, "Loading type" and "material" two tables are in different databases, the specific query method, as follows:
Copy Code code as follows:
@ "SELECT * from" Loading type as a INNER JOIN [;d atabase= "AppDomain.CurrentDomain.BaseDirectory" loading material. Zc]. Loading as B on A.bh=b.lxbh "
Detailed explanation: [;d atabase=path;pwd=12]. A
Access's cross libraries are implemented through brackets, including paths, password settings, and so on, as long as a connection is already open across the library.
The above mentioned is the entire content of this article, I hope you can enjoy.