Using string variable to determine form and labels to be loaded
I have several forms.
Which form is used is determined by a selection that is made.
This I can do with a CASE statement, but I would like to know if there is a way to do this using a string value as indicated below.
EG.
sFrm = "Diary"
sLab = "Meeting"
sVal = "2PM"
how can I build the following code dynamically
frmDiary.lblMeeting.Caption = sVal
I have 15 forms and 50 labels per form which I wish to populate in this manner. Not all labels will be populated.
Thanks