Get form field value via module [VBA]

前端 未结 3 1482
走了就别回头了
走了就别回头了 2021-01-27 06:25

I have a program built with VBA, in access. I have a form with the field chDate and I need to get the value of the field in a module file named Global (not class module).

<
3条回答
  •  自闭症患者
    2021-01-27 06:52

    Let me see if I can recall my Access days. In your global module you should access the form field be prefixing the form name i.e. var1 = Form1.txtFirmField.Text

提交回复
热议问题