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
 AddInPlace MOD
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pvspade
Starting Member

5 Posts

Posted - 11 June 2001 :  10:07:22  Show Profile
I've installed HuwR's "AddInPlace" MOD. It seems to work fine when I lock a topic in place. But when I then try to unlock it I get this error message:

quote:
Microsoft JET Database Engine error '80040e14' Syntax error (comma) in query expression 'FORUM_TOPICS.TOPIC_ID = 17, FORUM_TOPICS.T_INPLACE = 1'.

/forum/pop_open.asp, line 65



Here's the relevant code in pop_open.asp, around line 65:

quote:
strSql = strSql & " WHERE " & strTablePrefix & "TOPICS.TOPIC_ID = " & Request.Form("TOPIC_ID")

'#################### Lock in place code #################################
if Request.Form("InPlace") = "1" then
strSQL = strSql & ", " & strTablePrefix & "TOPICS.T_INPLACE = 1"
else
strSQL = strSql & ", " & strTablePrefix & "TOPICS.T_INPLACE = 0"
end if
'#################### Lock in place code #################################


my_Conn.Execute (strSql)

%>
<p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>"><b>Topic Un-Locked!</b></font></p>
<% else %>






Any ideas? (Please have mercy, I'm a complete ASP novice. )

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  10:30:59  Show Profile  Visit tilttek's Homepage
Change to

'#################### Lock in place code #################################
if Request.Form("InPlace") = "1" then
strSQL = strSql & ", " & strTablePrefix & "TOPICS.T_INPLACE = 1"
else
strSQL = strSql & ", " & strTablePrefix & "TOPICS.T_INPLACE = 0"
end if
'#################### Lock in place code #################################

strSql = strSql & " WHERE " & strTablePrefix & "TOPICS.TOPIC_ID = " & Request.Form("TOPIC_ID")

my_Conn.Execute (strSql)



Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

pvspade
Starting Member

5 Posts

Posted - 11 June 2001 :  22:21:27  Show Profile
Thanks! That works fine now.

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 12 June 2001 :  09:03:34  Show Profile  Visit tilttek's Homepage
quote:

Thanks! That works fine now.



No problem...

Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 20 July 2001 :  04:10:48  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
i have the smae problem can some one help??

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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07