如何在 Recordset 中使用变量!

发布于 2024-10-21 18:29:17 字数 290 浏览 6 评论 0原文

我的问题如下:

我需要为记录集分配一个值。问题是我需要使用一个变量。因此,我不需要写这个,而是

MyRecordSet![field_name]

需要写这个

MyRecordSet![variable_name]

即使对我来说,这一切看起来都很简单,直到我发现括号内没有引号来分隔文本字符串和变量名称。因此,我无法区分它们。

请大家帮帮我!我已经尝试了你能想象到的一切。

提前致谢。

My problem is the following:

I need to assign a value to the recordset. The problem isthat I need to use a variable. So, instead of write this

MyRecordSet![field_name]

I need to write this

MyRecordSet![variable_name]

This all look simple even to me, until I find out that inside the brackets there are no quotation marks to separate strings of text from variable names. Therefore, I can't distinguish them.

Please, guys, help me! I've tried everything you can imagine.

Thanks in advance.

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

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

发布评论

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

评论(1

不疑不惑不回忆 2024-10-28 18:29:17
MyRecordSet.Fields(variablename)
MyRecordSet.Fields(variablename)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文