snowboardr
Programmer
Im trying to load some course names in an array, via the database, but I can't specify the number of items in the array so it gives me a type match error, what could I do to get around this?
- Jason
Dim sAllCourseNames
strSelect = "SELECT cID, cTitle FROM course"
Set conn = createobject("ADODB.Connection"
Set rsCourseNames = Server.CreateObject("ADODB.RecordSet"
Database("open"
Set rsCourseNames = conn.Execute(strSelect)
If NOT rsCourseNames.eof then
Do while not rsCourseNames.eof
tempTitle = rsCourseNames("cTitle"
tempID = rsCourseNames("cID"
sAllCourseNames(tempID) = tempTitle
rsCourseName.movenext
loop
Else
NoCourses = True
End If
Database("close"
End If
www.vzio.com
ASP WEB DEVELOPMENT
- Jason
Dim sAllCourseNames
strSelect = "SELECT cID, cTitle FROM course"
Set conn = createobject("ADODB.Connection"
Set rsCourseNames = Server.CreateObject("ADODB.RecordSet"
Database("open"
Set rsCourseNames = conn.Execute(strSelect)
If NOT rsCourseNames.eof then
Do while not rsCourseNames.eof
tempTitle = rsCourseNames("cTitle"
tempID = rsCourseNames("cID"
sAllCourseNames(tempID) = tempTitle
rsCourseName.movenext
loop
Else
NoCourses = True
End If
Database("close"
End If
www.vzio.com
ASP WEB DEVELOPMENT