Access VBA 64 位中的 Now() 函数

发布于 2025-01-11 12:44:00 字数 315 浏览 4 评论 0原文

我的公司刚刚将 MS Office 更新到最新的 365 版本,现在我在 Access VBA 中遇到问题。 以下查询不再有效

SELECT Tbl_Customers.Name, Tbl_Customers.*, * FROM Tbl_Customers WHERE (((Tbl_Customers.CustomerType)=1) AND ((Tbl_Customers.NextAppointment)>Now()));

它会引发编译器错误,因为看起来函数 Now() 不再被识别。

我用谷歌搜索过,但找不到任何有用的信息。

My company just updated MS Office to the latest 365 version and now I have an issue in Access VBA.
The following query is not working any longer

SELECT Tbl_Customers.Name, Tbl_Customers.*, * FROM Tbl_Customers WHERE (((Tbl_Customers.CustomerType)=1) AND ((Tbl_Customers.NextAppointment)>Now()));

It throws me a compiler error because it seems the function Now() is not recognised any longer.

I have googled it but I cannot find any useful information about that.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清醇 2025-01-18 12:44:00

我刚刚发现缺少一些Declare PtrSafe Function...。查询现在再次运行。

I have just found out that a few Declare PtrSafe Function... were missing. The query is working again now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文