| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error:help
An error occuried when i try to write some data about authors:
ADODB.Recordset (0x800A0CB3) Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype. i execute a stored procedure.... query = "EXECUTE TopicsAuthors @lngLoggedID = " & 100 this sp return author, threadid, topicid and subject i use rs like this dim rsForum set rsForum = Server.CreateObject("ADODB.Recordset") rsForum.CursorType = 2 rsForum.Open query,conn conn is ok, sp also, but something is wrong in my code.....can anybody help? |
|
#2
|
||||
|
||||
|
Post your code
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#3
|
|||
|
|||
|
strSQL = "EXECUTE " & strDbProc & "ForumListTopics @lngForumID = " & intForumID
dim rsTopics set rsTopics = Server.CreateObject("ADODB.Recordset") set rsTopics = adoCon.Execute(strSQL) rsTopics.PageSize = intTopicPerPage rsTopics.EOF Then Response.Write vbCrLf & "" & strTxtNoTopicsToDisplay & " " & strShowTopicsFrom & "" Else rsTopics.AbsolutePage = intRecordPositionPageNum If rsTopics.EOF AND intRecordPositionPageNum > 1 Then rsTopics.AbsolutePage = 1 intTotalNumOfPages = rsTopics.PageCount file.WriteLine("Number of pages: " &intTotalNumOfPages) For intRecordLoopCounter = 1 to intTopicPerPage If rsTopics.EOF Then lngTopicID = CLng(rsTopics("Topic_ID")) lngPollID = CLng(rsTopics("Poll_ID")) intMovedForumID = CInt(rsTopics("Moved_ID")) lngNumberOfViews = CLng(rsTopics("No_of_views")) strSubject = rsTopics("Subject") blnTopicLocked = CBool(rsTopics("Locked")) intPriority = CInt(rsTopics("Priority")) If intPriority <= 1 Then intNonPriorityTopicNum = intNonPriorityTopicNum + 1 else intNonPriorityTopicNum = 1 Then Response.Write vbCrLf & "" & strTxtForum & " " & strTxtTopics & "" If intRecordLoopCounter = 1 AND intPriority => 2 Then Response.Write vbCrLf & "" & strTxtImportantTopics & "" strTopicStartUsername = rsTopics("Username") strFirstPostMsg = Mid(rsTopics("Message"), 1, 275) lngTopicStartUserID = CLng(rsTopics("Author_ID")) lngNumberOfReplies = CLng((rsTopics.RecordCount) - 1) dtmFirstEntryDate = CDate(rsTopics("Message_date")) lngLastEntryMessageID = CLng(rsTopics("Thread_ID")) dtmLastEntryDate = CDate(rsTopics("Message_date")) rsTopics.MoveNext() do until (Clng(rsTopics("Topic_ID")) = lngTopicID) strLastEntryUsername = rsTopics("Username") lngLastEntryUserID = CLng(rsTopics("Author_ID")) rsTopics.MoveNext() loop sorry...code is not so good.....i'm newbie.... |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Error:help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|