I want to edit the labels of my controls at run-time:
works well. But at run time the nr of the Label will change. Therefore I used the Eval function like I would have done in eg Matlab:
Nothing happened. Is there any way to get this "Matlab-Eval-functionality" in Access and VBA?
Yours sincerely,
van
Code:
Forms!MyForm!Label2.Caption = "LabelTxt"
works well. But at run time the nr of the Label will change. Therefore I used the Eval function like I would have done in eg Matlab:
Code:
tmpString = "Forms!MyForm!Label" & idx & ".Caption = ""LabelTxt""" ' idx:integer
Eval(tmpString)
Nothing happened. Is there any way to get this "Matlab-Eval-functionality" in Access and VBA?
Yours sincerely,
van