使用文本框更新MS访问中的另一个文本框

发布于 2025-02-12 18:45:22 字数 235 浏览 1 评论 0原文

我正在尝试根据文本框#1中的值更新文本框#2。 文本框#1中的值是从使用“ MID([ScanteCode],1,10)”的字符串中获取的。我尝试了几件事,但是我得到了#Error或#Name。

我正在使用

=(dlookup(“ productName”,“ list”,“ productn =”& [textbox#1]&“”))

请帮助我找到解决方案。

谢谢你, 问候, 罗汉

I am trying to update a textbox#2 based on the value in Textbox#1.
The value in the textbox#1 is taken from from a string using " Mid([ScantheCode],1,10)" from ScantheCode box. I have tried couple of things but I am getting #error or #name.

I am using

=(DLookUp("ProductName","List","ProductN=" & [Textbox#1] & "'"))

Please help me find the solution for it.

Thank you,
regards,
Rohan

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

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

发布评论

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

评论(1

波浪屿的海角声 2025-02-19 18:45:22

productn可能是 text ,因此请尝试插入丢失的报价:

=DLookUp("ProductName","List","ProductN = '" & [Textbox#1] & "'")

ProductN is probably text, so try inserting the missing quote:

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