Author |
Topic |
|
mtercek
New Member
56 Posts |
Posted - 31 March 2005 : 12:43:10
|
I have 3 mods - poll, calendar, and css so I must have "glommed" some code because I get this error message when clicking on active topics link from within the polls page:
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
/forum/active.asp, line 309
here's the select statement:
strSql = "SELECT F.FORUM_ID, " & _ "F.F_SUBJECT, " & _ "F.F_SUBSCRIPTION, " & _ "F.F_STATUS, " & _ "C.CAT_ID, " & _ "C.CAT_NAME, " & _ "C.CAT_SUBSCRIPTION, " & _ "C.CAT_STATUS, " & _ "T.T_STATUS, " & _ "T.T_VIEW_COUNT, " & _ "T.TOPIC_ID, " & _ "T.T_ISPOLL, " &_ "T.T_SUBJECT, " & _ "T.T_AUTHOR, " & _ "T.T_REPLIES, " & _ "T.T_UREPLIES, " & _ "M.M_NAME, " & _ "T.T_LAST_POST_AUTHOR, " & _ "T.T_LAST_POST, " & _ "T.T_LAST_POST_REPLY_ID, " & _ "MEMBERS_1.M_NAME AS LAST_POST_AUTHOR_NAME, " & _ "F.F_PRIVATEFORUMS, " & _ "F.F_PASSWORD_NEW, " & _ "T.T_ISEVENT, " &_ "FROM " & strMemberTablePrefix & "MEMBERS M, " & _ strTablePrefix & "FORUM F, " & _ strTablePrefix & "TOPICS T, " & _ strTablePrefix & "CATEGORY C, " & _ strMemberTablePrefix & "MEMBERS MEMBERS_1 " & _ "WHERE T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID " if strPrivateForums = "1" and mLev < 4 then strSql = strSql & " AND F.FORUM_ID IN (" & allAllowedForums & ") " end if
thanks!!
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
mtercek
New Member
56 Posts |
Posted - 31 March 2005 : 13:52:59
|
I get this message after adding the response.write strSql:
SELECT F.FORUM_ID, F.F_SUBJECT, F.F_SUBSCRIPTION, F.F_STATUS, C.CAT_ID, C.CAT_NAME, C.CAT_SUBSCRIPTION, C.CAT_STATUS, T.T_STATUS, T.T_VIEW_COUNT, T.TOPIC_ID, T.T_ISPOLL, T.T_SUBJECT, T.T_AUTHOR, T.T_REPLIES, T.T_UREPLIES, M.M_NAME, T.T_LAST_POST_AUTHOR, T.T_LAST_POST, T.T_LAST_POST_REPLY_ID, MEMBERS_1.M_NAME AS LAST_POST_AUTHOR_NAME, F.F_PRIVATEFORUMS, F.F_PASSWORD_NEW, T.T_ISEVENT, FROM FORUM_MEMBERS M, FORUM_FORUM F, FORUM_TOPICS T, FORUM_CATEGORY C, FORUM_MEMBERS MEMBERS_1 WHERE T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID Microsoft JET Database Engine error '80040e14'
The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.
/forum/active.asp, line 311
thanks very much! |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
Posted - 31 March 2005 : 15:23:12
|
Its the comma before FROM
strSql = "SELECT F.FORUM_ID, " & _
"F.F_SUBJECT, " & _
"F.F_SUBSCRIPTION, " & _
"F.F_STATUS, " & _
"C.CAT_ID, " & _
"C.CAT_NAME, " & _
"C.CAT_SUBSCRIPTION, " & _
"C.CAT_STATUS, " & _
"T.T_STATUS, " & _
"T.T_VIEW_COUNT, " & _
"T.TOPIC_ID, " & _
"T.T_ISPOLL, " &_
"T.T_SUBJECT, " & _
"T.T_AUTHOR, " & _
"T.T_REPLIES, " & _
"T.T_UREPLIES, " & _
"M.M_NAME, " & _
"T.T_LAST_POST_AUTHOR, " & _
"T.T_LAST_POST, " & _
"T.T_LAST_POST_REPLY_ID, " & _
"MEMBERS_1.M_NAME AS LAST_POST_AUTHOR_NAME, " & _
"F.F_PRIVATEFORUMS, " & _
"F.F_PASSWORD_NEW, " & _
"T.T_ISEVENT " &_
"FROM " & strMemberTablePrefix & "MEMBERS M, " & _
strTablePrefix & "FORUM F, " & _
strTablePrefix & "TOPICS T, " & _
strTablePrefix & "CATEGORY C, " & _
strMemberTablePrefix & "MEMBERS MEMBERS_1 " & _
"WHERE T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID "
if strPrivateForums = "1" and mLev < 4 then
strSql = strSql & " AND F.FORUM_ID IN (" & allAllowedForums & ") "
end if
I think...... |
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
|
|
|
Topic |
|
|
|