使用外部ACCDB创建查询 [英] Creating queries using external ACCDB
问题描述
大家好,
想知道我应该怎样做才能使用外部ACCDB创建查询
Just wondering what I should do to create a query using external ACCDB
在VBA代码中添加数据到我的数据库,我使用
In VBA Code, to add data to my DB, I use
设置db = OpenDatabase(" D:\DB.accdb")
Set db = OpenDatabase("D:\DB.accdb")
然后正常VBA命令。
有没有办法使用MSACCESS查询向导创建查询?
Is there any way of creating a query using MSACCESS query wizard?
请问,是否有人可以告诉我应该如何处理继续使用外部ACCDB文件创建查询?
Please, may anyone give me a light on how I should proceed to create query using external ACCDB file?
我不是初学者,但这是我第一次使用外部数据库
I am not beginner on this, but it is being my first time using external DB
问候,
Igor
推荐答案
Igor
为什么不链接到外部表?这样它们的行为就像本地表一样,除了你不能对链接表的设计做任何改变。
Why not link to the external tables? That way they behave just like local tables except you cannot make any changes to the linked tables' design.
否则,你必须在VBA中编写查询,它只对db对象有好处连接。
Otherwise, you have to write the query in VBA and it's only good while the db object is connected.
这篇关于使用外部ACCDB创建查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!