S
State Troopers
Hi there.
At this point i am SOOO confused.
I have a problem. Indeed.
A variable I am using to ReDim an Array is not getting the number I need. I
get a "subscript" error because I am trying to store an element in the array,
but the array has been limited to the wrong amount of elements allowed.
heres the code:
intRecords = rsMyRS.recordCount
ReDim strArray(intRecords)
heres the results:
variable
http://img47.imageshack.us/img47/4316/recordcount1sk.jpg
recordcount
http://img129.imageshack.us/img129/6287/recordcount23ja.jpg
the variable is stored as an integer. I tried Long, string, variant, double.
Same result everytime. Subscript out of range - trying to access an element
of the array that doesnt exist (trying to store a string in strArray(3)
...when stArray has been redim'd to max strArray(2) )
Not sure what to do.
Thanks.
-State
At this point i am SOOO confused.
I have a problem. Indeed.
A variable I am using to ReDim an Array is not getting the number I need. I
get a "subscript" error because I am trying to store an element in the array,
but the array has been limited to the wrong amount of elements allowed.
heres the code:
intRecords = rsMyRS.recordCount
ReDim strArray(intRecords)
heres the results:
variable
http://img47.imageshack.us/img47/4316/recordcount1sk.jpg
recordcount
http://img129.imageshack.us/img129/6287/recordcount23ja.jpg
the variable is stored as an integer. I tried Long, string, variant, double.
Same result everytime. Subscript out of range - trying to access an element
of the array that doesnt exist (trying to store a string in strArray(3)
...when stArray has been redim'd to max strArray(2) )
Not sure what to do.
Thanks.
-State