am I doing something wrong here?
VB Code:
CallByName frmProspects, frmProspects.chkRequired(i).Tag & ".backcolor", VbLet, &HC0FFFF
what i'm trying to do is...I store the name of a textbox in the tag of a checkbox. I search through the checkboxes and if it's checked I want to turn the backcolor of the textbox(who's name is in the tag property of the checkbox) yellow.
Can you do this with callbyname funtion and if not is there another way(or trick) to do it?
I know I can search thru the all the controls until the name matches the one in the tag property but there are to many controls to do that and seems slopy. IMO




Reply With Quote