Results 1 to 2 of 2

Thread: filling fields

  1. #1
    Join Date
    Jun 2002

    Unanswered: filling fields

    i have an array(9) and want to fill corresponding txtboxes so that array(0) fills txtbox0, array(1) fills txtbox1, array(2) fills txtbox2. is there a way to do this with a loop?

  2. #2
    Join Date
    Jan 2003
    VBA isn't as nice as VB but it can still be done. Name your text boxes something like txt1, txt2.. then use the following:

    For i = 0 To 9 Step 1
    Controls("txt" & i).value = myarray(i)
    Next i

    That should do the trick.
    Rom 8:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts