Hi all,
Another quick question. I'm trying to populate 2 arrays from my SQL query and I keep getting the "Subscript out of range" error. Can someone explain what I'm doing wrong?
Cheers!
Another quick question. I'm trying to populate 2 arrays from my SQL query and I keep getting the "Subscript out of range" error. Can someone explain what I'm doing wrong?
Code:
dim counter, prevComments(), R_to()
RS.movefirst
counter = 0
do until RS.EOF
R_to(counter) = RS("R_postby")
prevComments(counter) = RS("R_comments")
counter = counter + 1
RS.movenext
loop
Cheers!