This may be easier. Change your TextBoxes from individual controls to be members of a control array. Do the same thing for the matching labels. That way if you determine that MyTextBox(2) is blank, you know you need to change MyLabel(2). By the way, to determine if an object is a TextBox, you don't need to know it's name (or prefix). Just do this:------------------Code:For Each x In Controls If TypeOf x Is TextBox Then ' It's a Textbox End If Next
Marty
[This message has been edited by MartinLiss (edited 01-14-2000).]




Reply With Quote