array use

M

Mike D

I am trying to populate an array of an uknown deminsion. I am getting a
subscript error. Here is the code

Dim x, arRE_SEQUENCE_NUMBER
x = 0
If Not RS.Eof then
Do while Not RS.Eof

arRE_SEQUENCE_NUMBER(x) = RS("RE_SEQUENCE_NUMBER")
x = x + 1
RS.MoveNext
Loop
End If

What am I missing?

Mike
 
D

Dave Anderson

Mike said:
I am trying to populate an array of an uknown deminsion. I am getting
a subscript error. Here is the code

Dim x, arRE_SEQUENCE_NUMBER
x = 0
If Not RS.Eof then
Do while Not RS.Eof

arRE_SEQUENCE_NUMBER(x) = RS("RE_SEQUENCE_NUMBER")
x = x + 1
RS.MoveNext
Loop
End If

What am I missing?

RS.GetRows(), for one thing.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
D

dlbjr

Mike,

Do you mind explaining exactly what you are trying to accomplish?

You may want to use a dictionary object or a client side recordset to manipulate the needed data.


'dlbjr
'Pleading sagacious indoctrination!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top