Advertisement

07.31.2008 at 09:38AM PDT, ID: 23611507
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.9

Rowset position cannot be restarted.

Asked by thatelvis in Active Server Pages (ASP)

Hello,
I have been working on a page, it has a horozontal recordset but I have a problem with it as I get the following error.

Microsoft OLE DB Provider for SQL Server error '80040e18'

Rowset position cannot be restarted.

/plunke_profile.asp, line 369

-~-~-~ I have commented line 369 -~-~-~-~

This is the recordset it was created in dreamweaver


<%
Dim Rectabmenu__KTColParam1
Rectabmenu__KTColParam1 = "0"
If (Request.QueryString("leektakerid") <> "") Then
  Rectabmenu__KTColParam1 = Request.QueryString("leektakerid")
End If
%>

<%
Dim Rectabmenu
Dim Rectabmenu_cmd
Dim Rectabmenu_numRows

Set Rectabmenu_cmd = Server.CreateObject ("ADODB.Command")
Rectabmenu_cmd.ActiveConnection = MM_connpeepeek_STRING
Rectabmenu_cmd.CommandText = "SELECT skill_list.skill_name, indiv_skill.skill_idusr, indiv_skill.skill_what, indiv_skill.skill_why, indiv_skill.skill_where, indiv_skill.skill_ref, skill_list.skill_pk FROM (indiv_skill LEFT JOIN skill_list ON skill_list.skill_pk=indiv_skill.skill_ref) WHERE indiv_skill.skill_idusr=?"
Rectabmenu_cmd.Prepared = true
Rectabmenu_cmd.Parameters.Append Rectabmenu_cmd.CreateParameter("param1", 5, 1, -1, Rectabmenu__KTColParam1) ' adDouble
Set Rectabmenu = Rectabmenu_cmd.Execute
Rectabmenu_numRows = 0
%><%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
Rectabmenu_numRows = Rectabmenu_numRows + Repeat1__numRows
%>

--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~

this is the body section below I have commonted the line giving the error



<div class="p7TP_tabs">
                  <%
Dim i, css_class
i = 0

While ((Repeat1__numRows <> 0) AND (NOT Rectabmenu.EOF))
      i = i + 1
      if i = 1 then
            css_class = "down"
      else
            css_class = ""
      end if
%>
                   
<div id="p7tpb1_<%=i%>" class="<%=css_class%>"><a class="<%=css_class%>" href="javascript:;"><%=(Rectabmenu.Fields.Item("skill_name").Value)%> </a></div>
                  <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Rectabmenu.MoveNext()
Wend
Rectabmenu.MoveFirst() ' this is where I get the error
%>    
                    <br class="p7TPclear">
                  </div>
                  <div class="p7TPcontent">
<%
i = 0
While ((Repeat1__numRows <> 0) AND (NOT Rectabmenu.EOF))
i = i + 1
%>
                  <div id="p7tpc1_<%=i%>">
                      <!-- panel content start -->
                      dfgdfgd <%=(Rectabmenu.Fields.Item("skill_what").Value)%>
                      <!-- panel content finish -->
                    </div>
                    <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Rectabmenu.MoveNext()
Wend
Rectabmenu.MoveFirst()
%>
                  </div>
                </div>


Am grateful for any enlightment

cheers

Kenny




Start Free Trial
[+][-]07.31.2008 at 10:11AM PDT, ID: 22131595

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.31.2008 at 10:22AM PDT, ID: 22131666

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.31.2008 at 11:29AM PDT, ID: 22132243

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628