I have a problem that's been bothering me for a week now. I want to learn more array in vba so I searched on forums and books made my own, according to my understanding.
I have three textboxes: txtResult1, txtResult2, txtResult3
and a user entry textbox to fill up my array: txtInput
dim j as integer
dim k as integer
k=me.txtInput.v alue
j=k
for k=0 to 3
Me("txtResult" & k).Value = j
Next k
this code works a little, my question is, Why can't my array store the first values I entered
in my txtInput. My txtResult seems to accept only the last entry. please help how do I fix my array?
thanks in advance!
I have three textboxes: txtResult1, txtResult2, txtResult3
and a user entry textbox to fill up my array: txtInput
dim j as integer
dim k as integer
k=me.txtInput.v alue
j=k
for k=0 to 3
Me("txtResult" & k).Value = j
Next k
this code works a little, my question is, Why can't my array store the first values I entered
in my txtInput. My txtResult seems to accept only the last entry. please help how do I fix my array?
thanks in advance!
Comment