VBScript runtime error?

Results 1 to 4 of 4

Thread: VBScript runtime error?

  1. #1
    Join Date
    Dec 1969
    Posts
    218

    Default VBScript runtime error?

    Microsoft VBScript runtime error &#039 800a0009&#039 <BR><BR>Subscript out of range: &#0390&#039 <BR>

  2. #2
    Shawn Clabough Guest

    Default RE: VBScript runtime error?

    The error alone isn&#039t enough information. Would you post some of the code that causes the error?

  3. #3
    Join Date
    Dec 1969
    Posts
    218

    Default RE: VBScript runtime error?

    rsy.open sqlstmt, conn, adOpenStatic<BR><BR> Dim PollOptions()<BR> Redim PollOptions(rsy.RecordCount,2)<BR><BR> Dim iCount, iTotalVotes, strPollName<BR> iCount = 0<BR> iTotalVotes = 0<BR> strPollName = CStr(rsy("Pollq"))<BR> Do While Not rsy.EOF<BR> PollOptions(iCount,1) = CInt(rsy("Votes"))<BR> PollOptions(iCount,2) = CStr(rsy("QuestionText"))

  4. #4
    Shawn Clabough Guest

    Default RE: VBScript runtime error?

    Which line is it giving you the error in? You might want to add some debug code like after creating the recordset, response.write rsy.recordcount and in your loop response.write iCount.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •