Problem description: Sometimes it is necessary to query and obtain the required record set through related keywords in the tables of two or three databases. , which cannot be achieved with ordinary SQL query statements, can be achieved through the cross-database query function of ACCESS.
Solution: For example, the two tables "Content Type" and "Content Material" are in different databases. The specific query method is as follows:
The code is as follows:
Detailed explanation: [;database=path;pwd=12].A
ACCESS's cross-library is implemented through square brackets, including path, password settings, etc.; the premise of cross-library is that a Connection has been opened.