I have a db 'labels' with the names of all the labels that appear on my form and their caption (in several languages).
I now would like to change my form's labelcaptions with the names in my db. How can I select the label on my form that is equal to the labelname (string) in my db? This is what I already tryed, but the problem is to set the object = the db.labelname
I now would like to change my form's labelcaptions with the names in my db. How can I select the label on my form that is equal to the labelname (string) in my db? This is what I already tryed, but the problem is to set the object = the db.labelname
Code:
Dim obj As Label
With rsLabel
.MoveFirst
For i = 1 To .RecordCount
Set obj = !l_labelnaam
obj.Caption = !L_LabelNL
.MoveNext
Next
End With[\code]
Sfenx8-)