Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Dim maker as String Set Maker = Forms![A]![B]
我似乎无法让它工作。每次运行时,它都会给我一个“需要对象”错误。这包含在一个更大的模块中,但这是它唯一给我带来问题的方面。
基本上,我希望“maker”等同于表单 A 上名为 B 的文本框的内容。
有什么建议么?
除非您正在分配对象,否则不要使用 Set:
Dim maker as String Maker = Forms![A]![B]
对于一个对象:
Dim maker as Form Set Maker = Forms![A]