I have a list of 20 textboxes on a form. each textbox is a record in a table. I want to loop through the textboxes if posible:
for x = 1 to 20
sStmt = "update list_table set"
sStmt += " docu = '"+??textbox_x??+"'"
sStmt += " where id_code = "+id_code
sqlexe(sStmt, oConn)
next
I did get it to work with
For x = 0 To Me.tabPAGE1.Controls.Count - 1
sStmt = " document = '" + Me.tabPAGE1.Controls(x).Text + "'"
Next
but I'm looking for a way to identify a textbox with a string