How to access the label of a control in code

前端 未结 5 608
天命终不由人
天命终不由人 2020-12-19 06:21

Often a label control is bound to a textbox or similar other control. I know that there is a way to access the label through code, but I do not remember how to do it.

<
5条回答
  •  被撕碎了的回忆
    2020-12-19 06:34

    If its access I think it is

    Forms!YourFormName!YourField.Value

    Or if you have a sub form its:

    Forms!yourMainForm!YourSubForm!YourField.Value

提交回复
热议问题