yeah you would just pass the different names to that one function, you don't have to make different ones.

for example:

vb Code:
  1. For i as integer = 1 to 6
  2.  
  3. UpdateTB("TextBoxX" + i.toString,"TextBoxY" + i.tostring,"X","Y")
  4.  
  5. Next

Justin