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
 PM Mod? Not sure
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chuck Sinclair
Starting Member

USA
9 Posts

Posted - 28 May 2002 :  00:20:20  Show Profile
When i go to delete a user i get the following error:

ADODB.Recordset error '800a0e78'

Operation is not allowed when the object is closed.

/ws-landsca1/pop_delete.asp, line 524

The only thing i have done with thid file is add the PM Mod.
It's in this area and i don't see a problem

if Mode_Type = "DeleteMember" then
mLev = cint(chkUser(STRdbntUserName, Request.Form("Pass")))
if mLev > 0 then '## is Member
if mLev = 4 then
'## Forum_SQL - Remove the member from the moderator table
strSql = "DELETE FROM " & strTablePrefix & "MODERATOR "
strSql = strSql & " WHERE " & strTablePrefix & "MODERATOR.MEMBER_ID = " & Member_ID

my_Conn.Execute (strSql)
'## Forum_SQL - Select postcount
strSql = "SELECT COUNT(T_AUTHOR) AS POSTCOUNT "
strSql = strSql & " FROM " & strTablePrefix & "TOPICS "
strSql = strSql & " WHERE T_AUTHOR = " & Member_ID
set rs = my_Conn.Execute (strSql)
if not rs.eof then
intPostcount = rs("POSTCOUNT")
else
intPostcount = 0
end if
>>>>>>>>>>>>>> it is point here >>>rs.close

'## Forum_SQL - Select postcount
strSql = "SELECT COUNT(R_AUTHOR) AS REPLYCOUNT "
strSql = strSql & " FROM " & strTablePrefix & "REPLY "
strSql = strSql & " WHERE R_AUTHOR = " & Member_ID
set rs = my_Conn.Execute (strSql)
if not rs.eof then
intReplycount = rs("REPLYCOUNT")
else
intReplycount = 0

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 May 2002 :  01:00:00  Show Profile
Just by looking at the code, add the following after the rs.close:
set rs = nothing
See if that fixes the problem.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Chuck Sinclair
Starting Member

USA
9 Posts

Posted - 28 May 2002 :  19:17:02  Show Profile
I added that like you said and now i get this error

Microsoft VBScript runtime error '800a01a8'

Object required: 'rs'

/pop_delete.asp, line 524


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 May 2002 :  22:55:38  Show Profile
Post your updated code now, and let me know which line is 524.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Chuck Sinclair
Starting Member

USA
9 Posts

Posted - 30 May 2002 :  20:03:04  Show Profile
Thanks for your help, i found the problem i pasted the code twice. I took one out and it works fine now.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 May 2002 :  23:16:33  Show Profile
LoL. Oh yeah. How did that one miss me? I was wondering why the record set was being used twice. Didn't see the rest of the code was the same.

Glad you got it working, although I didn't give you much help.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07