P
paul.schrum
Access 2007
I am getting a "subscript out of range" error when using LBound on a
dynamic array which I just ReDim'd.
<code>
Dim ad_aveGallonsPerDay() As Double ' ad_ stands for Array of
Doubles
ReDim da_aveGallonsPerDay(2 To 12)
Dim testLB As Long, testUB As Long
testLB = LBound(ad_aveGallonsPerDay) ' error occurs at this line
</code>
Can anyone help me figure out what I should do differently?
Thanks.
- Paul Schrum
I am getting a "subscript out of range" error when using LBound on a
dynamic array which I just ReDim'd.
<code>
Dim ad_aveGallonsPerDay() As Double ' ad_ stands for Array of
Doubles
ReDim da_aveGallonsPerDay(2 To 12)
Dim testLB As Long, testUB As Long
testLB = LBound(ad_aveGallonsPerDay) ' error occurs at this line
</code>
Can anyone help me figure out what I should do differently?
Thanks.
- Paul Schrum