ReportingAnalyst
MIS
Hi,
Is it not possible to use an array which I populated with the recordset outside of the if statement?
If I were to use this statement, after the above code,
It errs:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'UBound'
So obviously it is not liking the array being used. But I thought that once we populate an array, we can call the array anytime and display the data.
Thanks.
Is it not possible to use an array which I populated with the recordset outside of the if statement?
Code:
If not rs2.EOF then
'This line sees if there is value of 1 for the query above
sub_Value = rs2("Count_Sub")
If sub_Value = 1 Then
'output a link
returnValue = True
Response.Write returnValue
Else
'do not output a link
returnValue = False
Response.Write returnValue
End If
aSubordinates = rs2.getrows()
rs2.close
set rs2 = nothing
End If
If I were to use this statement, after the above code,
Code:
For iRowLoop = 0 to UBound(aSubordinates, 2)
It errs:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'UBound'
So obviously it is not liking the array being used. But I thought that once we populate an array, we can call the array anytime and display the data.
Thanks.