When you use thisYour program does not know what i equals so it doesn't know what textbox to put it in. When you declare a number variable, it defaults to 0, which is why your text is going into to Text1(0).Text. The question you have to answer is:VB Code:
Private Sub Combo1_Click() frmMain.txtxtext2(i).Text = Combo1.Text End SubWhichever is the case, replace i with the textboxs array number.VB Code:
'do you want the text in frmMain.txtxtext2(0).Text = Combo1.Text 'or do you want the text in frmMain.txtxtext2(1).Text = Combo1.Text 'or do you want the text in frmMain.txtxtext2(2).Text = Combo1.Text 'or do you want the text in frmMain.txtxtext2(3).Text = Combo1.Text 'or do you want the text in frmMain.txtxtext2(4).Text = Combo1.Text
PS: I have added [vbcode][/vbcode] tags to your last post. As you can see, it makes reading what has been posted a lot easier.![]()




Reply With Quote