可以“ docmd.runcmd accmdnewobject ...”延迟直到对象定义?

发布于 2025-02-04 05:35:40 字数 334 浏览 3 评论 0原文

VBA过程

DoCmd.RunCommand acCmdNewObjectDesignTable

我有一个用于创建表的 。当定义表时,它将使用

DoCmd.RunCommand acCmdNewObjectForm

基于先前创建的表创建表单。

如何延迟创建表格直到定义表之后?

建议我在运行DOCMD后检查TDF的存在以定义表。问题仍然是:如何将检查延迟到DOCMD完成后?

虽然VBA不是多线程,但“ docmd”是。

您可以通过比较创建之前和之后的全尺寸来获取名称。

I have a VBA procedure that uses

DoCmd.RunCommand acCmdNewObjectDesignTable

to create a table. When the table is defined it then uses

DoCmd.RunCommand acCmdNewObjectForm

to create a form based on the table previously created.

How to delay creatng the form until after the table has been defined?

It was suggested that I check for the existence of the TDF after running DoCmd to define the table. The questions still is: How to delay checking until after DoCmd completes?

While VBA is not multi-threaded, "DoCmd" is.

You can get the name by comparing AllTables before and after the create.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文