使用外部ACCDB创建查询 [英] Creating queries using external ACCDB

查看:90
本文介绍了使用外部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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆