Ref. 20 textboxes on a form numerically

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 12
Reputation: Robert Walker is an unknown quantity at this point 
Solved Threads: 0
Robert Walker Robert Walker is offline Offline
Newbie Poster

Ref. 20 textboxes on a form numerically

 
0
  #1
Sep 20th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 12
Reputation: Robert Walker is an unknown quantity at this point 
Solved Threads: 0
Robert Walker Robert Walker is offline Offline
Newbie Poster

Re: Ref. 20 textboxes on a form numerically

 
0
  #2
Sep 22nd, 2005
Originally Posted by Robert Walker
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC