Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Editing Post Crashes(Polls MOD Installed)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RedLeader
New Member

USA
85 Posts

Posted - 22 May 2001 :  12:56:31  Show Profile  Visit RedLeader's Homepage  Send RedLeader an AOL message
I've added the Polls Mod and for some reason, when a use attempts to edit their message I get the following error:


Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

/sopranochat/post.asp, line 519


The code in that section look like this:

if strRqMethod = "EditTopic" or _
strRqMethod = "TopicQuote" then
'## Forum_SQL
strSql = "SELECT " & strTablePrefix & "TOPICS.CAT_ID, " & strTablePrefix & "TOPICS.FORUM_ID, " & strTablePrefix & "TOPICS.TOPIC_ID, " & strTablePrefix & "TOPICS.T_SUBJECT, " & strTablePrefix & "TOPICS.T_AUTHOR, " & strTablePrefix & "TOPICS.T_MAIL, " & strTablePrefix & "TOPICS.T_MESSAGE, " & strTablePrefix & "TOPICS.answer1, " & strTablePrefix & "TOPICS.answer2, " & strTablePrefix & "TOPICS.answer3, " & strTablePrefix & "TOPICS.answer4, " & strTablePrefix & "TOPICS.answer5, " & strTablePrefix & "TOPICS.answer6, " & strTablePrefix & "TOPICS.answer7, " & strTablePrefix & "TOPICS.answer8 "
strSql = strSql & " FROM " & strTablePrefix & "TOPICS "
strSql = strSql & " WHERE " & strTablePrefix & "TOPICS.TOPIC_ID = " & Request.QueryString("TOPIC_ID")

'Response.Write strSQL
set rs = my_Conn.Execute (strSql)

TxtSub = rs("T_SUBJECT")
strAuthor = rs("T_AUTHOR")
' ############# Poll Mod ####################
txtSub1 = trim(rs("answer1"))
txtSub2 = trim(rs("answer2"))
txtSub3 = trim(rs("answer3"))
txtSub4 = trim(rs("answer4"))
txtSub5 = trim(rs("answer5"))
txtSub6 = trim(rs("answer6"))
txtSub7 = trim(rs("answer7"))
txtSub8 = trim(rs("answer8"))
' #########################################


if strRqMethod = "EditTopic" then
Line 519:->TxtMsg = rs("T_MESSAGE")


if Instr(TxtMsg, "Edited by - ") then TxtMsg = Left(TxtMsg, InstrRev(TxtMsg, "Edited by - ")-36) end if
else


Any ideas? You can see what I mean at the forum.

http://forums.webposter.com/sopranochat

Thanks,

RL

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 May 2001 :  14:36:50  Show Profile
grrrrrrrrrr, I thought i fixed that.
In the SQL statement, move the & strTablePrefix & "TOPICS.T_MESSAGE, " to the end. Like so:

strSql = "SELECT " & strTablePrefix & "TOPICS.CAT_ID, " & strTablePrefix & "TOPICS.FORUM_ID, " & strTablePrefix & "TOPICS.TOPIC_ID, " & strTablePrefix & "TOPICS.T_SUBJECT, " & strTablePrefix & "TOPICS.T_AUTHOR, " & strTablePrefix & "TOPICS.T_MAIL, " & strTablePrefix & "TOPICS.answer1, " & strTablePrefix & "TOPICS.answer2, " & strTablePrefix & "TOPICS.answer3, " & strTablePrefix & "TOPICS.answer4, " & strTablePrefix & "TOPICS.answer5, " & strTablePrefix & "TOPICS.answer6, " & strTablePrefix & "TOPICS.answer7, " & strTablePrefix & "TOPICS.answer8, " & strTablePrefix & "TOPICS.T_MESSAGE "

The code in red is what I added. The T_MESSAGE needs to be the last one in the SELECT statement.

Go to Top of Page

RedLeader
New Member

USA
85 Posts

Posted - 22 May 2001 :  18:55:05  Show Profile  Visit RedLeader's Homepage  Send RedLeader an AOL message
that did it... thanks....

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07