Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

working with two dimensional arrays

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I have an array I am trying to create and I am recieving a type mismatch error. can anyone tell me why I would see this. This is my first time working with arrays

<%
dbrs2.open (&quot;Select * from timemonths where approval = 1&quot;), dbconn, 0, 1
i = 0
dbrs2.movefirst
Do until EOF
cal(i,0) = dbrs2(&quot;loginID&quot;) ----- This is the error line.
cal(i,dbrs2(&quot;monthnumber&quot;)) = &quot;X&quot;
Movenext
if dbrs2(&quot;loginID&quot;) <> cal(i,0) Then
i = i + 1
End if
loop
i = i + 1
cal(i,0) = &quot;Done&quot;

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top