tazdog
08-19-2004, 01:03 AM
Trying to nail down this error I got:
Subscript out of range: '501'
Here is the code:
Dim AirportID(500)
Dim Cnt
Dim CntA
Dim ArTime
Dim DeTime
Cnt = 0
strSQL = "SELECT Name FROM Airports ORDER BY Name ASC"
RS.Open strSQL,CONN,1,1
Do Until RS.EOF
AirportID(Cnt) = RS.Fields("Name")
Cnt = Cnt + 1
RS.MoveNext
Loop
RS.Close
** The ERROR is stating the Line that starts with AirportID, thats where I get the 501 error.. **
Any help would be great, or pointers..!!!
I'm not a real good asp\db programmer and in fact someone else did this, but I'm trying to learn and since this broke, i thought what the heck..
thanks
Scott
Subscript out of range: '501'
Here is the code:
Dim AirportID(500)
Dim Cnt
Dim CntA
Dim ArTime
Dim DeTime
Cnt = 0
strSQL = "SELECT Name FROM Airports ORDER BY Name ASC"
RS.Open strSQL,CONN,1,1
Do Until RS.EOF
AirportID(Cnt) = RS.Fields("Name")
Cnt = Cnt + 1
RS.MoveNext
Loop
RS.Close
** The ERROR is stating the Line that starts with AirportID, thats where I get the 501 error.. **
Any help would be great, or pointers..!!!
I'm not a real good asp\db programmer and in fact someone else did this, but I'm trying to learn and since this broke, i thought what the heck..
thanks
Scott